Neural Networks Notes: Difference between revisions
Adamcolton (talk | contribs) No edit summary |
Adamcolton (talk | contribs) No edit summary |
||
| Line 28: | Line 28: | ||
===1C : Simple models of neurons=== | ===1C : Simple models of neurons=== | ||
To model things we have to idealize them. | |||
====Linear Neuron==== | |||
Simple but misleading. | |||
y = b + Σ x<sub>i</sub>w<sub>i</sub> | |||
*b: bias | |||
*w: weight | |||
*x: input | |||
The graph is a straight line | |||
====Binary Threshold Neurons==== | |||
First compute a weighted sum of the inputs. If the weighted sum exceeds a threshold, send out a spike. | |||
Graph is a cliff. | |||
====Rectified Linear Neurons==== | |||
Sometimes called linear threshold neurons. Compute a linear weighted sum of their inputs, the output is non-linear. If the value is less than 0 the output is 0, if it is greater than 0, the output is the weighted sum. | |||
The first half of the graph is flat, the second is a positive sloped line. | |||
====Sigmoid Neurons==== | |||
Give a real-valued output that is a smooth and bounded function of their total input. Typically they use the logistic function. | |||
y = 1 / (1 + e<sup>-z</sup>) | |||
*z: BTN value | |||
The graph is kind of an S shape. It's never above 1 or below 0. | |||
====Stochastic Binary Neurons=== | |||
Use a SN to calculate a probability value then "dice rolling" to see if the output is 1 or 0. | |||
[[Category:Notes]] | [[Category:Notes]] | ||
[[Category:Class]] | [[Category:Class]] | ||
Revision as of 14:35, 1 October 2012
Lectures
1A
Machine learning is good for complicated processes combining weak rules to hit a moving target. The machine learning approach is to mine data for rules and it should work for new cases, not just the cases it was trained on.
Best for learning algorithms:
- Recognizing patterns
- objects in real scenes
- facial identities or expressions
- spoken words
- Anomalies
- unusual sequences of credit card transactions
- unusual patterns of sensor readings in nuclear power plants
- Prediction
- future stock prices
- which movies a person will like
The MNIST database of hand-written digits is the machine learning equivalent of fruit flies to genetics. TIMIT is the same benchmark for speech recognition.
1B : Real Neurons
A cortical neuron has one axon that branches and dendritic tree that collects input form other neurons. A spike of activity in the axon causes charge to be injected into the post-synaptic neuron. Shen a spike of activity travels along an axon and arrives at a synapse it causes vesicles of transmitter chemicals to be released. There are several kinds of transmitter.
- Each neuron receives input from other neurons (a few neurons are also connect to receptors)
- The effect of each input line on the neuron is controlled by a synaptic weight.
- The synaptic weight adapts so that the whole network learns to perform useful computations.
- You have 10^11 neurons each with about 10^4 weights.
The cortex is modular. Different bits of the cortex do different things. Local damage to the brain has specific effects. But the cortex looks pretty much the same all over. This suggests that there is a uniform learning pattern at work.
1C : Simple models of neurons
To model things we have to idealize them.
Linear Neuron
Simple but misleading.
y = b + Σ xiwi
- b: bias
- w: weight
- x: input
The graph is a straight line
Binary Threshold Neurons
First compute a weighted sum of the inputs. If the weighted sum exceeds a threshold, send out a spike.
Graph is a cliff.
Rectified Linear Neurons
Sometimes called linear threshold neurons. Compute a linear weighted sum of their inputs, the output is non-linear. If the value is less than 0 the output is 0, if it is greater than 0, the output is the weighted sum.
The first half of the graph is flat, the second is a positive sloped line.
Sigmoid Neurons
Give a real-valued output that is a smooth and bounded function of their total input. Typically they use the logistic function.
y = 1 / (1 + e-z)
- z: BTN value
The graph is kind of an S shape. It's never above 1 or below 0.
=Stochastic Binary Neurons
Use a SN to calculate a probability value then "dice rolling" to see if the output is 1 or 0.