video thumbnail 13:50
Neural Networks (E02: predictions – python)

2018-06-04

[public] 160K views, 5.99K likes, 35.0 dislikes audio only

In this episode we look at how neural networks can be represented with matrices, and create a simple feedforward network in python.

Note: at 2:31 the second bias vector should only have two rows, not three.

Code:

https://github.com/SebLague/Neural-Network-python

I owe a lot to this excellent online book on neural networks:

http://neuralnetworksanddeeplearning.com/

Learn more about weight initialization:

http://cs231n.github.io/neural-networks-2/#init

(note: numpy.random.randn and numpy.random.standard_normal are functionally equivalent, the latter just takes a tuple for the shape parameter).

Support the creation of more tutorials:

https://www.patreon.com/SebastianLague

https://www.paypal.me/SebastianLague


start by creating a weight matrix for the connections
/youtube/video/8bNIkfRJZpo?t=12.009
start by multiplying the values in the first row
/youtube/video/8bNIkfRJZpo?t=67.119003
passing each of the values through the activation function
/youtube/video/8bNIkfRJZpo?t=119.979
feed these activations through to the next layer of the network
/youtube/video/8bNIkfRJZpo?t=141.819
holding the shapes of each of the weight matrices
/youtube/video/8bNIkfRJZpo?t=230.59
draw these random numbers from the standard normal distribution
/youtube/video/8bNIkfRJZpo?t=362.79999
define an initialization method
/youtube/video/8bNIkfRJZpo?t=434.51999
create a method for feeding inputs through the network
/youtube/video/8bNIkfRJZpo?t=512.21899
loop through all the weights and biases
/youtube/video/8bNIkfRJZpo?t=529
set the size of the output layer here to 10
/youtube/video/8bNIkfRJZpo?t=652.23999
Sebastian Lague Hello, on this channel I explore how to create stuff out of code. I hope you find some of it interesting!
/youtube/channel/UCmtyQOKKmrMVaKuRXz02jbQ
Support these videos on Patreon patreon.com
https://www.patreon.com/SebastianLague
Introduction to Game Development (Unity and C#) by Sebastian Lague
/youtube/video/_cCGBMmMOFw
Blender Character Creation by Sebastian Lague
/youtube/video/DiIoWrOlIRw