Notes from Wednesday 10/09.


Structure: How does a neural network recognize handwritten digits?.

His demonstration is a basic one ("multilayer perceptron").

What do the middle layers do?

→ the first breaks it down into small, recognizable sub-components, and each remaining layer builds them back up

*similar process for parsing speech: neural networks take raw audio, break them down into basic sounds, and then build them up into recognizable syllables and then words

How does one layer influence the next?

→ Each individual neuron in one layer is influenced by all the neurons in the previous one by an equation that combines their activation numbers with weights and adds a bias, then squishes that value between 0 - 1 (using a sigmoid function).

*the bias is meant to de-activate false positives; e.g. we only want to activate the next neuron if b > 10

$$ a_0^0 = \sigma (w_1a_1+w_2a_2+...+w_na_n - b) $$

→ We commonly express this formula using matrices

$$ \begin{bmatrix} w_{0,0} & w_{0,1} & \dots & w_{0,n} \\ w_{1,0} & w_{1,1} & \dots & w_{2,n} \\ \vdots & \vdots & \ddots & \vdots \\ w_{k,0} & w_{k,1} & \dots & w_{k,n} \end{bmatrix} \begin{bmatrix} a_0^0 \\ a_1^0 \\ \vdots \\ a_n^0 \end{bmatrix} + \begin{bmatrix} b_0 \\ b_1 \\ \vdots \\ b_n \end{bmatrix} = \begin{bmatrix} a_0^1 \\ a_1^1 \\ \vdots \\ a_n^1 \end{bmatrix} $$

Learning

To increase accuracy, we train the network with sample data, and then test it on new data to see its accuracy.