Skip to content

Commit

Permalink
markdown source builds
Browse files Browse the repository at this point in the history
Auto-generated via {sandpaper}
Source  : 284b5e4
Branch  : main
Author  : Jonathan Taylor <jonathan.taylor@manchester.ac.uk>
Time    : 2023-09-13 15:45:15 +0000
Message : Start updating ep4
  • Loading branch information
actions-user committed Sep 13, 2023
1 parent 6961544 commit 629c4d8
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 19 deletions.
63 changes: 47 additions & 16 deletions 04-plotting.md → 04-create_net.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,63 @@
---
title: Plotting data
teaching: 30
exercises: 0
title: Neural networks
teaching: 20
exercises: 10
---

::::::::::::::::::::::::::::::::::::::: objectives

- "Display simple graphs with adequate titles and labels."
- "Get familiar with functions `plot`, `heatmap` and `imagesc`."
- "Learn how to show images side by side."
objectives:
- "Become familiar with key components of a neural network."
- "Create the architecture for a convolutational neural network."

::::::::::::::::::::::::::::::::::::::::::::::::::

:::::::::::::::::::::::::::::::::::::::: questions

- "How can I visualize my data?"
- "What is a neural network?"
- "What are the characteristics of a dense layer?"
- "What is an activation function?"
- "What is a convolutional neural network?"

::::::::::::::::::::::::::::::::::::::::::::::::::

:::::::::::::::::::::::::::::::::::::::: keypoints

- "Dense layers, also known as fully connected layers, are an important building block in most neural network architectures. In a dense layer, each neuron is connected to every neuron in the preceeding layer."
- "Dropout is a method that helps to prevent overfitting by temporarily removing neurons from the network."
- "The Rectified Linear Unit (ReLU) is an activation function that outputs an input if it is positive, and outputs zero if it is not."
- "Convolutional neural networks are typically used for imaging tasks."

::::::::::::::::::::::::::::::::::::::::::::::::::



## What is a neural network?

An artificial neural network, or just “neural network”, is a broad term that describes a family of machine learning models that are (very!) loosely based on the neural circuits found in biology.

The smallest building block of a neural network is a single neuron. A typical neuron receives inputs (x1, x2, x3) which are multiplied by learnable weights (w1, w2, w3), then summed with a bias term (b). An activation function (f) determines the neuron output.

![](fig/neuron.png){alt="An example neuron receiving input from 3 other neurons"}

From a high level, a neural network is a system that takes input values in an “input layer”, processes these values with a collection of functions in one or more “hidden layers”, and then generates an output such as a prediction. The network has parameters that are systematically tweaked to allow pattern recognition.

![](fig/simple_neural_network.png){a;t="A simple neural network with input, output, and 2 hidden layers"}












## MATLAB



## Plotting
The mathematician Richard Hamming once said,
Expand Down Expand Up @@ -204,13 +244,4 @@ subjects of the next two lessons.



:::::::::::::::::::::::::::::::::::::::: keypoints

- "Use `plot(vector)` to visualize data in the y axis with an index number in the x axis."
- "Use `plot(X,Y)` to specify values in both axes."
- "Document your plots with `title('My title')`, `xlabel('My horizontal label')` and `ylabel('My vertical label')`."
- "Use `hold on` and `hold off` to plot multiple lines at the same time."
- "Use `legend` and add `,'DisplayName','legend name here'` inside the plot function to add a legend."
- "Use `subplot(m,n,p)` to create a grid of `m` x `n` plots, and choose a position `p` for a plot."

::::::::::::::::::::::::::::::::::::::::::::::::::
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ episodes:
- 01-xrays.md
- 02-visualisation.md
- 03-data_prep.md
- 04-plotting.md
- 04-create_net.md
- 05-scripts.md
- 06-func.md
- 07-loops.md
Expand Down
Binary file added fig/neuron.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added fig/simple_neural_network.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions md5sum.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"file" "checksum" "built" "date"
"CODE_OF_CONDUCT.md" "c93c83c630db2fe2462240bf72552548" "site/built/CODE_OF_CONDUCT.md" "2023-08-21"
"LICENSE.md" "b24ebbb41b14ca25cf6b8216dda83e5f" "site/built/LICENSE.md" "2023-08-21"
"config.yaml" "a489e17d770fda735a89fb13f64b03f7" "site/built/config.yaml" "2023-09-11"
"config.yaml" "cf12da1406a750ff02f76b466885afbb" "site/built/config.yaml" "2023-09-13"
"index.md" "65addd3c144518a9f78d8871d20f650a" "site/built/index.md" "2023-08-21"
"episodes/01-xrays.md" "3f632d7f57ae4500685f33084569b2e6" "site/built/01-xrays.md" "2023-09-07"
"episodes/02-visualisation.md" "a4691efb3b405086c3e4c15e2162ca56" "site/built/02-visualisation.md" "2023-09-11"
"episodes/03-data_prep.md" "c91610c10d0869777b70634a41a3e41c" "site/built/03-data_prep.md" "2023-09-11"
"episodes/04-plotting.md" "e60a9f194ed9b5fe516f2aa9865ccec9" "site/built/04-plotting.md" "2023-08-21"
"episodes/04-create_net.md" "6a53a0fcde1e1e6cc1d5c2e9d8a98761" "site/built/04-create_net.md" "2023-09-13"
"episodes/05-scripts.md" "345b218b165e690c05526faa0fd9e276" "site/built/05-scripts.md" "2023-08-21"
"episodes/06-func.md" "3124afd9a5a2d2434c4e4d34056842cc" "site/built/06-func.md" "2023-08-21"
"episodes/07-loops.md" "85de3b8735b0c68d274bb989c33c0f81" "site/built/07-loops.md" "2023-08-21"
Expand Down

0 comments on commit 629c4d8

Please sign in to comment.