Neural Networks Notes: Difference between revisions

From Adam Colton
Jump to navigation Jump to search
No edit summary
No edit summary
Line 58: Line 58:
The graph is kind of an S shape. It's never above 1 or below 0.
The graph is kind of an S shape. It's never above 1 or below 0.


====Stochastic Binary Neurons===
====Stochastic Binary Neurons====
Use a SN to calculate a probability value then "dice rolling" to see if the output is 1 or 0.
Use a SN to calculate a probability value then "dice rolling" to see if the output is 1 or 0.


===1D: A simple example of learning===
Simple network for recognizing numbers. For training; we increase weights for the thing that is right and we decrement weights for the thing that it guessed.
===1E: Three types of learning===
*Supervised learning
**Trying to predict an output when given an input vector
*Unsupervised learning
**Select action to maximize payoff
*Reinforcement learning
**Discover a good internal representation of the input
Supervised learning has regression and classification. Regression means the output is a real value.
In reinforcement learning the only supervisory signal is an occasional scalar reward. The goal in selecting each action is to maximize the expected sum of future rewards (discounted). this id difficult. Hard to know where we went wrong. A scalar reward does not supply much information. It is not covered in this course.
Unsupervised learning provides a compact low-dimensional representation of the input. Good for finding sensible clusters of the input.
[[Category:Notes]]
[[Category:Notes]]
[[Category:Class]]
[[Category:Class]]

Revision as of 17:13, 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.

1D: A simple example of learning

Simple network for recognizing numbers. For training; we increase weights for the thing that is right and we decrement weights for the thing that it guessed.

1E: Three types of learning

  • Supervised learning
    • Trying to predict an output when given an input vector
  • Unsupervised learning
    • Select action to maximize payoff
  • Reinforcement learning
    • Discover a good internal representation of the input

Supervised learning has regression and classification. Regression means the output is a real value.

In reinforcement learning the only supervisory signal is an occasional scalar reward. The goal in selecting each action is to maximize the expected sum of future rewards (discounted). this id difficult. Hard to know where we went wrong. A scalar reward does not supply much information. It is not covered in this course.

Unsupervised learning provides a compact low-dimensional representation of the input. Good for finding sensible clusters of the input.