NeuralNets DeepLearning
NeuralNets DeepLearning
• General Learning:
• Given a collection of sample data {x0, x1, …, xn-1},
where each datum can be classified as one of a set of possible
values
{y0, y1, …, yM-1}:
• Create an algorithm that will
• classify each sample item correctly
• learn features from the samples that can be applied correctly to new
items
• Examples :
• Given a set of emails, which we have designated as spam or not
spam,
learn to classify future items correctly as spam or not spam.
• Given a collection of handwritten digits, learn to classify
handwritten digits.
LEARNING FROM EXAMPLES
• General approach:
“Ground truth”: data we will use that has already been classified
(correctly, we hope). Training data + Testing data
“Training data”: Used to train your algorithm.
• Need to know the answers in order to train the algorithm correctly.
• Hope/expect that nearly all will be categorized correctly by
algorithm.
“Testing data”: Used to test how well your algorithm works on data that
was not used in the training.
• Pretend not to know the answers, use answers to determine if
correct.
• Examples:
• Spam detection:
use last month’s emails to train your algorithm; use this week’s to test
your algorithm.
• Handwritten digits: with a set of 500 samples, use 400 to train, 100 to test.
LEARNING FROM EXAMPLES
Image: http://neuralnetworksanddeeplearning.com/chap1.html
NEURAL NETWORKS AND DEEP LEARNING
Image: http://neuralnetworksanddeeplearning.com/chap1.html
SAMPLE NEURAL NETWORK
Sample Results:
Training for 30 epochs, learning rate 3.0
>>> net = network.Network([784, 15, 10])
Image: http://neuralnetworksanddeeplearning.com/chap1.html
SAMPLE NEURAL NETWORK
Sample Results:
Training for 30 epochs, learning rate 3.0
>>> net = network.Network([784, 30, 10])
Image: http://neuralnetworksanddeeplearning.com/chap1.html
SAMPLE NEURAL NETWORK
Image: http://neuralnetworksanddeeplearning.com/chap1.html
SAMPLE NEURAL NETWORK
http://neuralnetworksanddeeplearning.com/chap6.html
DEEP LEARNING EXAMPLE
Recognizes as “5”
https://www.cs.ryerson.ca/~aharley/vis/conv/flat.html