10.02.2021 Views

Neural Networks from Scratch in Python by Harrison Kinsley, Daniel Kukie a

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 2 - Coding Our First Neurons - Neural Networks from Scratch in Python

11

A Layer of Neurons

Neural networks typically have layers that consist of more than one neuron. Layers are nothing

more than groups of neurons. Each neuron in a layer takes exactly the same input — the input

given to the layer (which can be either the training data or the output from the previous layer),

but contains its own set of weights and its own bias, producing its own unique output. The layer’s

output is a set of each of these outputs — one per each neuron. Let’s say we have a scenario with

3 neurons in a layer and 4 inputs:

Fig 2.04:​ Visualizing a layer of neurons with common input.

Anim 2.04:​ ​https://nnfs.io/mxo

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!