Documente Academic
Documente Profesional
Documente Cultură
Overview
Biological Neuron
Artificial Neuron Activation Functions Perceptron Learning
Biological Neurons
Soma or body cell - is a large, round central body in which almost all the logical functions of the neuron are realized. The axon (output), is a nerve fiber attached to the soma which can serve as a final output channel of the neuron. An axon is usually highly branched. The dendrites (inputs)- represent a highly branching tree of fibers. These long irregularly shaped nerve fibers (processes) are attached to the soma. Synapses are specialized contacts on a neuron which are the termination points for the axons from other neurons.
The spikes travelling along the axon trigger the release of neurotransmitter substances at the synapse.
The neurotransmitters cause excitation or inhibition of the signal in the dendrite The contribution of the signals depends on the strength of the synaptic connection.
An Artificial Neuron
Artificial Neuron(Contd)
Artificial Neuron(Contd)
An Artificial Neuron(AN) implements a nonlinear mapping depending on the activation function used. That is,
Artificial Neuron(Contd)
Artificial Neuron(Contd)
10
Artificial Neuron(Contd)
11
Artificial Neuron(Contd)
12
Activation Functions
1. Linear Function:
13
Activation Functions
2. Step Function:
14
Activation Functions
3. Ramp Function:
15
Activation Functions
4. Sigmoid Function:
16
Activation Functions
5. Hyperbolic Tangent Function:
6. Gaussian Function:
17
Linearly Separable
18
Linearly Separable
19
20
Supervised Learning:
Neuron is provided with a data set consisting of input vectors and a target (desired output). Also called (Training Set) Aim is then to adjust the weight values
Unsupervised Learning:
Where the aim is to discover patterns or features in the input data with no assistance from an external source.
Reinforcement Learning:
Where the aim is to reward a neuron for good performance and to penalize the neuron for bad performance.
21
Sweet=1
Edible=1 Edible=1
Not Sweet=0
Not Edible=0 Not Edible=0
For Output:
22
Seeds
0.0
fire
23
To train the perceptron, we will show it each example and have it categorize each one. Since its starting with no knowledge, it is going to make mistakes. When it makes a mistake, we are going to adjust the weights to make that mistake less likely in the future.
24
When we adjust the weights, were going to take relatively small steps to be sure we dont over-correct and create new problems.
25
We are going to learn the Category good fruit defined as anything that is sweet. Good fruit = 1 Not Good Fruit = 0
26
Seeds
0.0
If > 0.4 then
0.0
Skin
fire
27
In this case we have: (1 X 0) + (1 X 0) + (0 X 0) It adds up to 0.0. Since that is less than the threshold (0.40), it responded no. Is that correct? No.
28
Since we got it wrong, we know we need to change the weights. Well do that using the delta rule (delta for change).
w = learning rate X (Target output- Actual output) X input
29
(Target output - actual output) (Error):Target out put should be good fruit as it is sweet so, in this case, the target output should be1, the output is 0, so (1 - 0) = 1.
Input: For first node it is1.
30
So calculating w,
w = 0.25 x (1-0) x 1 = 0.25
w is the change in weight so we are adding 0.25 to it. If we get (target output - Actual out put) = 0
then no need to adjust weights. And if the (target output - Actual output) is positive then we have to increase the weight, otherwise we will have to decrease the weights.
31
Taste
Seeds Skin
0.25
0.25 0.25
1
1 1
1
1 0
+0.25
+0.25 0
32
0.25
Output
0.25
Seeds
0.0
fire
33
the next example, adjust the weights We will keep cycling through the examples until we go all the way through one time without making any changes to the weights. At that point, the concept is learned.
34
Input
Taste
0.25
Output
Seeds
0.25
0.25
If > 0.4 then
0.0
Skin
fire
35
Taste
Seeds Skin
0.25
0.25 0.25
1
1 1
1
0 1
+0.25
0 +0.25
36
Seeds
0.25
fire
37
Input
Taste
Seed
0
If > 0.4 then
0.25
Skin
fire
38
Taste
Seeds Skin
0.25
0.25 0.25
0
0 0
0
0 0
0
0 0
39
Input
Taste
Seed
1
If > 0.4 then
0.25
Skin
fire
40
Taste
Seeds Skin
0.25
0.25 0.25
0
0 0
1
1 1
0
0 0
41
Input
Taste
Seed
0.25
0.25
fire
42
that this perceptron can correctly classify the examples that we have.