Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 1/20 Podstawy Sieci neuronowych Michal Gutowski April 5, 2016
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 2/20 Outline 1 Neural networks - quick overview Small characteristics Example 2 Neuron model Real neuron Artificial neuron 3 Learning Supervised learning Delta rule 4 Activation function 5 Perceptron 6 Example time! 7 Little conclusion 8 When to use vs. when not to use
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 3/20 Quick overview Created in order to work like a brain Consists of several neurons Used where results depends on many inputs or where you are not sure what are you looking for
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 4/20 Diet application You need to provide sufficient levels of carbohydrates proteins fats vitamins water (...) What you eat today depends on meals from a period of time - you won’t eat the same meals everyday Your meals should take under consideration you activities on a given day
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 5/20 Real neuron Source: http://shajitheodore.com/neuroscience/drug- addiction/neuron-the-nerve-cell/neuron-the-nerve- cell/ obtains data from other neurons electrical charges are being transmitted through the axon sends data to another neuron if charge is high enough
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 6/20 Neuron model x1w1 + x2w2 + x3w3
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 6/20 Neuron model x1w1 + x2w2 + x3w3 y = i=N i=1 xi wi where N is number of inputs
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 7/20 Supervised learning We must create a learning set Learning set consists of known inputs with known outputs Algorithm is as follows 1 calculate output for given training entry 2 calculate error 3 update weights We repeat the algorithm until results are OK Each full run over training set is called training epoch
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 9/20 Delta rule ∆wi = α(t − y)xi ∆wi how should a weight change α small constant - learning rate t expected output from a training set y actual output xi input from training set
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 11/20 Neuron model y = F( i=N i=1 xi wi ) where N is number of inputs y = x y = 1 1+ex
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 12/20 Delta rule ∆wi = α(t − y)g (h)xi ∆wi how should a weight change α small constant - learning rate t expected output from a training set y actual output h is what y used to be previously xi input from training set h = i=N i=1 xi wi g (h) derivative of activation function in given point
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 13/20 Perceptron basics One of the best known neural networks Used mostly for classification Invented in 1957
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 14/20 First perceptron Source: https://en.wikipedia.org/wiki/Perceptron
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 15/20 3 layer perceptron Source: http://neuroph.sourceforge.net
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 16/20 Classification
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 17/20 Example Output - 1 everything ok, 0 possible problems input x1 1 tall 0 small input x2 1 big weight 0 small weight
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 18/20 Example
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 19/20 Example decide on inputs/outputs create a training set create the network observe output and error adjust parameters
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 20/20 When to use vs when not to use When to use? a lot of inputs not sure what are you looking for When not to use?
Small characteristics Example Neuron model Real neuron Artificial neuron Learning Supervised learning Delta rule Activation function Perceptron Example time! Little conclusion 20/20 When to use vs when not to use When to use? a lot of inputs not sure what are you looking for When not to use? there exists any other solution