Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 11 additions & 10 deletions episodes/1-introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@
6. (optional) This function is not differentiable at 0
7. (optional) This function is the default for Dense layers (search the Keras documentation!)

*Activation function plots by Laughsinthestocks - Own work, CC BY-SA 4.0, https://commons.wikimedia.org/w/index.php?curid=44920411,
https://commons.wikimedia.org/w/index.php?curid=44920600, https://commons.wikimedia.org/w/index.php?curid=44920533*
_Activation function plots by Laughsinthestocks - Own work, CC BY-SA 4.0, <https://commons.wikimedia.org/w/index.php?curid=44920411>,
<https://commons.wikimedia.org/w/index.php?curid=44920600>, <https://commons.wikimedia.org/w/index.php?curid=44920533>_

::: solution
## Solution
Expand All @@ -134,7 +134,7 @@

![
Image credit: Glosser.ca, CC BY-SA 3.0 <https://creativecommons.org/licenses/by-sa/3.0>, via Wikimedia Commons,
[original source](https://commons.wikimedia.org/wiki/File:Colored_neural_network.svg)
original source: <https://commons.wikimedia.org/wiki/File:Colored_neural_network.svg>
](fig/01_neural_net.png){
alt='A diagram of a three layer neural network with an input layer, one hidden layer, and an output layer.'
}
Expand Down Expand Up @@ -198,6 +198,7 @@
| 0 | 1 | **1** |
| 1 | 1 | **0** |
| 1 | 0 | **1** |

b. This solves the XOR logical problem, the output is 1 if only one of the two inputs is 1.

:::
Expand Down Expand Up @@ -229,7 +230,7 @@
as we proceed in this lesson.](fig/01_deep_network.png){alt='An example of a deep neural network'}

![As a result of the optimization process, the different layers of a neural network tend to learn increasingly abstract representations of the input data.
](fig/01_nn_abstraction_layers.png)
](fig/01_nn_abstraction_layers.png){alt='Example of two different neural networks and how each layer process different abstract representations of input data'}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
](fig/01_nn_abstraction_layers.png){alt='Example of two different neural networks and how each layer process different abstract representations of input data'}
](fig/01_nn_abstraction_layers.png){alt='Example of two different neural networks and how each layer processes different abstract representations of the input data'}


### How do neural networks learn?
What happens in a neural network during the training process?
Expand All @@ -249,7 +250,7 @@
3. Click on "Math Renderer".
4. Click on "Common HTML".

from: https://physics.meta.stackexchange.com/questions/14408/bug-in-mathjax-rendering-using-chrome
from: <https://physics.meta.stackexchange.com/questions/14408/bug-in-mathjax-rendering-using-chrome>
:::

:::: challenge
Expand Down Expand Up @@ -455,10 +456,10 @@
2. What data inputs and outputs will you have?
3. Do you think you will need to train the network or will a pre-trained network be suitable?
4. What data do you have to train with? What preparation will your data need? Consider both the data you are going to predict/classify from and the data you will use to train the network.
:::

::: solution
Discuss your answers with the group or the person next to you.
:::
::::


Expand All @@ -470,11 +471,11 @@

[TensorFlow](https://www.tensorflow.org/) was developed by Google and is one of the older deep learning libraries, ported across many languages since it was first released to the public in 2015. It is very versatile and capable of much more than deep learning but as a result it often takes a lot more lines of code to write deep learning operations in TensorFlow than in other libraries. It offers (almost) seamless integration with GPU accelerators and Google's own TPU (Tensor Processing Unit) chips that are built specially for machine learning.

### PyTorch
### PyTorch <!-- no-patch -->

[PyTorch](https://pytorch.org/) was developed by Facebook in 2016 and is a popular choice for deep learning applications. It was developed for Python from the start and feels a lot more "pythonic" than TensorFlow. Like TensorFlow it was designed to do more than just deep learning and offers some very low level interfaces. [PyTorch Lightning](https://www.pytorchlightning.ai/) offers a higher level interface to PyTorch to set up experiments. Like TensorFlow it is also very easy to integrate PyTorch with a GPU. In many benchmarks it outperforms the other libraries.

### Keras
### Keras <!-- no-patch -->

[Keras](https://keras.io/) is designed to be easy to use and usually requires fewer lines of code than other libraries. We have chosen it for this lesson for that reason. Keras can actually work on top of TensorFlow (and several other libraries), hiding away the complexities of TensorFlow while still allowing you to make use of their features.

Expand All @@ -484,10 +485,10 @@

### Installing Keras and other dependencies

Follow the [setup instructions](learners/setup.md#packages) to install Keras, Seaborn and scikit-learn.
Follow the [setup instructions](./setup.md#packages) to install Keras, Seaborn and scikit-learn.

Check failure on line 488 in episodes/1-introduction.md

View workflow job for this annotation

GitHub Actions / Linkspector

[linkspector] episodes/1-introduction.md#L488

Cannot reach ./setup.md#packages Status: 404 Cannot find: ./setup.md#packages
Raw output
message:"Cannot reach ./setup.md#packages Status: 404 Cannot find: ./setup.md#packages"  location:{path:"episodes/1-introduction.md"  range:{start:{line:488  column:12}  end:{line:488  column:53}}}  severity:ERROR  source:{name:"linkspector"  url:"https://github.com/UmbrellaDocs/linkspector"}

## Testing Keras Installation
Keras is available as a module within TensorFlow, as described in the [setup instructions](learners/setup.md#packages).
Keras is available as a module within TensorFlow, as described in the [setup instructions](./setup.md#packages).

Check failure on line 491 in episodes/1-introduction.md

View workflow job for this annotation

GitHub Actions / Linkspector

[linkspector] episodes/1-introduction.md#L491

Cannot reach ./setup.md#packages Status: 404 Cannot find: ./setup.md#packages
Raw output
message:"Cannot reach ./setup.md#packages Status: 404 Cannot find: ./setup.md#packages"  location:{path:"episodes/1-introduction.md"  range:{start:{line:491  column:71}  end:{line:491  column:112}}}  severity:ERROR  source:{name:"linkspector"  url:"https://github.com/UmbrellaDocs/linkspector"}
Let's therefore check whether you have a suitable version of TensorFlow installed.
Open up a new Jupyter notebook or interactive python console and run the following commands:
```python
Expand Down
Loading