SlideShare a Scribd company logo
Soft Computing: Artificial Neural
Networks-Back propagation
Dr. Baljit Singh Khehra
Professor
CSE Department
Baba Banda Singh Bahadur Engineering College
Fatehgarh Sahib-140407, Punjab, India
Multilayer NNs
Backpropagation Algorithm
 Single Perceptrons can only solve linear problems.
 To solve non-linear problem, multilayer networks learned by the
Backpropagation algorithm are more important .
 Backpropagation
– A systematic method of training multilayer ANNs.
– Built on high mathematical foundation and very good application potential.
– A multilayer forward network using extend gradient-descent based delta-learning rule,
commonly known as back propagation (of errors) rule.
– Provides a computationally efficient method for changing the weights in a feed forward
network, with differentiable activation function units, to learn a training set of input-
output examples.
– Supervise learning.
Back propagation Training Algorithm
Training a network by back propagation involves four stages:
 Initialization of weights and bias.
 The Feed forward of input training pattern.
 The back propagation of associated error.
 The adjustment of weights.
Architecture of Multilayer NNs
Backpropagation Algorithm
Backpropagation Training Algorithm
Initialization
Step1. Initialize weights and bias .
(Set to small random values)
Step2. While stopping condition is not satisfied,
do Steps 3-10.
Step3. For each training pair, do Steps 4-9
Feed forward :
Step 4.Each input unit (Xi, i = 1, …..,n ) receives input signal xi and
broadcasts this signal to all units in the layer above (the hidden units).
Step 5. Each hidden unit (Zj, j = 1, …..p ) sums its weighted input signals
applies its activation function to compute its output signal
zj = f (z_inj,),and sends this signal to all units in the layer above
(output units).


n
i
ijiojj vxnvinz
1
_
Backpropagation Training Algorithm
Step 6. Each output unit (Yk, k = 1, ….,m ) sums its weighted input signals,
and applies its activation function to compute its output signal ,
yk = f (y_ink).
Backpropagation of error :
Step7. Each output unit (Yk, k =1,…..,m) receives a target pattern
corresponding to the input training pattern, computes its error information
term,
k = (tk – yk) f' (y_ink),
calculates its weight correction term (used to update wjk later).
wjk =αkzj,
calculates its bias correction term (used to up date wok later).
wok = ak, and sends k to units in the layer below .


p
j
jkjokk wzwiny
1
_
Backpropagation Training Algorithm
Step 8. Each hidden unit (Zj, j = 1,……… p) sums its delta inputs (from units in
the layer above),
multiplies by the derivative of its activation function to calculate its error
information term.
j = _inj f' (z_inj),
calculates its weight correction term (used to update vij later),
vij = ajxi,
and calculates its bias correction term (used to update voj later),
voj = aj,


m
k
jkkj win
1
_ 
Backpropagation Training Algorithm
Update weights and biases :
Step 9.Each output unit (Yk, k =1,……,m) updates its bias and weights
(j=0……..p) :
wjk (new) =wjk (old) + wjk,
Each hidden unit (Zj, j =1……. p) updates its bias and weights (i =
0,……,n) :
vij (new) = vij (old) + vij.
Step 10. Test stopping condition.
Effects of Learning rate
 Learning rate determines the size of the weight adjustments made at each
iteration and hence influences the rate of convergence.
 Poor choice of learning rate can result in a failure in convergence.
 If learning rate is too large, the search path will oscillate.
 If learning rate is too small, the descent will progress in small steps
significantly increasing the time to converge.
 Optimal selection of learning rate is necessary.
Momentum factor
 Momentum is a parameter that is used to improve the rate of convergance.
 If the momentum is added to the weight update formula, the convergence is
faster.
 Using momentum, the net does not proceed in the direction of the gradient,
but travels in the direction of the combination of the current gradient and
the previous direction for which the weight correction is made.
 The main purpose of momentum is to accelerate the convergence of error
propagation algorithm.
)]1()([)()1(
)]1()([)()1(


tvtvxtvtv
twtwztwtw
ijijijijij
jkjkjkjkjk


Backpropagation for load forecasting in power generation
Architecture of NNs for load forecasting in power generation
Backpropagation training algorithm for load forecasting
Initially weights (Set to small random values)
v=rand(3, p);
v0=rand(1, p);
w=rand(p,1);
w0=rand(1,1);
Convergence =1;
Epoch=0;
While convergence
e=0;
For tp=1 to 7 ( training pairs)
For j=1 to p (hidden units)
z_in(j) =v0(j);
For i=1 to 3 (Input units)
Endfor
z(j) = f (z_in(j),);
Endfor
);,(*),()(_)(_ jivitpXjinzjinz 
Backpropagation training algorithm for load forecasting
Y_in=w0+z*w;
y(tp)=f(y_in) ;
k = (T(tp) – y(tp))* f' (y_in) ;
w =α*k*z;
w0 = a*k,;
;
For j = 1 to p
;
Endfor
For j = 1 to p
For i=1 to n
;
Endfor
Endfor
v0 = aj ;
win kj *_  
))(_('*)1,(_)1,( jinzfjinj jj  
),(*)1,(*),( tpiXjajiv j
Backpropagation training algorithm for load forecasting
%Update weights and biases
w(new) =w (old) + w;
w0(new) =w0 (old) + w0;
v(new) =v (old) + v;
v0(new) =v0 (old) + v0;
Endfor
if e<TSE
convergence=0;
endif
Epoch=Epoch+1;
Endwhile
display (‘ Total Epoch performed’);
display (epoch);
display (‘Error’);
display (e);
display (‘Final weights &bias’);
w(new);
w0(new);
v(new);
v0(new);
    2
tpytpTee 
Activation functions for load Forecasting
 Performance of back propagation algorithm for load forecasting is
measured at two different activation functions:
1. Sigmoid function
Derivative of sigmoid function
2. Hyperbolic tangent function
Derivative of Hyperbolic tangent function
x
e
xf 


1
1
)(
2
'
)1(
)( x
ax
e
ae
xf 



x
x
e
e
xf 2
2
1
1
)( 




22
2
)1(
4
)(' x
x
e
e
xf 



Results
Results
Testing Data for load forecasting
Backpropagation testing algorithm for load forecasting
Let be a matrix which contains data for testing, every row of matrix
represents different testing set. In the proposed study, for testing 5 testing
pairs are considered.
Algorithm:
Calculated weights and bias from training algorithm
;
;
;
;
For tp=1 to 5 ( testing pairs)
For j=1 to p (hidden units)
Z_in(j) =v0(j);
For i=1 to 3 (Input units)
Endfor
35X
pv 3
pv 10
1pw
110 w
);,(*),()(_)(_ jivitpXjinzjinz 
Backpropagation testing algorithm for load forecasting with
Results
z(j) = f (z_in(j),);
Endfor
y_in=w0+z*w;
y(tp)=f(y_in) ;
End
Back propagation

More Related Content

What's hot

Curse of dimensionality
Curse of dimensionalityCurse of dimensionality
Curse of dimensionality
Nikhil Sharma
 
Mc culloch pitts neuron
Mc culloch pitts neuronMc culloch pitts neuron
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
PundrikPatel
 
Texture in image processing
Texture in image processing Texture in image processing
Texture in image processing
Anna Aquarian
 
Matching techniques
Matching techniquesMatching techniques
Matching techniques
Nagpalkirti
 
Max net
Max netMax net
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networks
Akash Goel
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
EdutechLearners
 
Neural network & its applications
Neural network & its applications Neural network & its applications
Neural network & its applications
Ahmed_hashmi
 
Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
DEEPASHRI HK
 
Hyperparameter Tuning
Hyperparameter TuningHyperparameter Tuning
Hyperparameter Tuning
Jon Lederman
 
Neural Network Architectures
Neural Network ArchitecturesNeural Network Architectures
Neural Network Architectures
Martin Ockajak
 
Deep Learning With Neural Networks
Deep Learning With Neural NetworksDeep Learning With Neural Networks
Deep Learning With Neural Networks
Aniket Maurya
 
07 regularization
07 regularization07 regularization
07 regularization
Ronald Teo
 
Artificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rulesArtificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rules
Mohammed Bennamoun
 
Adaline madaline
Adaline madalineAdaline madaline
Adaline madaline
Nagarajan
 
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
Simplilearn
 
Associative memory network
Associative memory networkAssociative memory network
Associative memory network
Dr. C.V. Suresh Babu
 
Training Neural Networks
Training Neural NetworksTraining Neural Networks
Training Neural Networks
Databricks
 
L7 fuzzy relations
L7 fuzzy relationsL7 fuzzy relations
L7 fuzzy relations
Mohammad Umar Rehman
 

What's hot (20)

Curse of dimensionality
Curse of dimensionalityCurse of dimensionality
Curse of dimensionality
 
Mc culloch pitts neuron
Mc culloch pitts neuronMc culloch pitts neuron
Mc culloch pitts neuron
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Texture in image processing
Texture in image processing Texture in image processing
Texture in image processing
 
Matching techniques
Matching techniquesMatching techniques
Matching techniques
 
Max net
Max netMax net
Max net
 
backpropagation in neural networks
backpropagation in neural networksbackpropagation in neural networks
backpropagation in neural networks
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
 
Neural network & its applications
Neural network & its applications Neural network & its applications
Neural network & its applications
 
Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
 
Hyperparameter Tuning
Hyperparameter TuningHyperparameter Tuning
Hyperparameter Tuning
 
Neural Network Architectures
Neural Network ArchitecturesNeural Network Architectures
Neural Network Architectures
 
Deep Learning With Neural Networks
Deep Learning With Neural NetworksDeep Learning With Neural Networks
Deep Learning With Neural Networks
 
07 regularization
07 regularization07 regularization
07 regularization
 
Artificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rulesArtificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rules
 
Adaline madaline
Adaline madalineAdaline madaline
Adaline madaline
 
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
What Is Deep Learning? | Introduction to Deep Learning | Deep Learning Tutori...
 
Associative memory network
Associative memory networkAssociative memory network
Associative memory network
 
Training Neural Networks
Training Neural NetworksTraining Neural Networks
Training Neural Networks
 
L7 fuzzy relations
L7 fuzzy relationsL7 fuzzy relations
L7 fuzzy relations
 

Similar to Back propagation

CS767_Lecture_05.pptx
CS767_Lecture_05.pptxCS767_Lecture_05.pptx
CS767_Lecture_05.pptx
ShujatHussainGadi
 
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...
Cemal Ardil
 
parallel
parallelparallel
UofT_ML_lecture.pptx
UofT_ML_lecture.pptxUofT_ML_lecture.pptx
UofT_ML_lecture.pptx
abcdefghijklmn19
 
nural network ER. Abhishek k. upadhyay
nural network ER. Abhishek  k. upadhyaynural network ER. Abhishek  k. upadhyay
nural network ER. Abhishek k. upadhyay
abhishek upadhyay
 
알고리즘 중심의 머신러닝 가이드 Ch04
알고리즘 중심의 머신러닝 가이드 Ch04알고리즘 중심의 머신러닝 가이드 Ch04
알고리즘 중심의 머신러닝 가이드 Ch04
HyeonSeok Choi
 
SOFTCOMPUTERING TECHNICS - Unit
SOFTCOMPUTERING TECHNICS - UnitSOFTCOMPUTERING TECHNICS - Unit
SOFTCOMPUTERING TECHNICS - Unit
sravanthi computers
 
Artificial Neural Networks-Supervised Learning Models
Artificial Neural Networks-Supervised Learning ModelsArtificial Neural Networks-Supervised Learning Models
Artificial Neural Networks-Supervised Learning Models
DrBaljitSinghKhehra
 
Artificial Neural Networks-Supervised Learning Models
Artificial Neural Networks-Supervised Learning ModelsArtificial Neural Networks-Supervised Learning Models
Artificial Neural Networks-Supervised Learning Models
DrBaljitSinghKhehra
 
understanding Backpropagation neural networks
understanding Backpropagation neural networksunderstanding Backpropagation neural networks
understanding Backpropagation neural networks
Khaled Mo
 
Support Vector Machines for Computing Action Mappings in Learning Classifier ...
Support Vector Machines for Computing Action Mappings in Learning Classifier ...Support Vector Machines for Computing Action Mappings in Learning Classifier ...
Support Vector Machines for Computing Action Mappings in Learning Classifier ...
guest9b3f63
 
04 Multi-layer Feedforward Networks
04 Multi-layer Feedforward Networks04 Multi-layer Feedforward Networks
04 Multi-layer Feedforward Networks
Tamer Ahmed Farrag, PhD
 
Ch2 2011 s
Ch2 2011 sCh2 2011 s
Neural Networks
Neural NetworksNeural Networks
Neural Networks
Sagacious IT Solution
 
Implementing the Perceptron Algorithm for Finding the weights of a Linear Dis...
Implementing the Perceptron Algorithm for Finding the weights of a Linear Dis...Implementing the Perceptron Algorithm for Finding the weights of a Linear Dis...
Implementing the Perceptron Algorithm for Finding the weights of a Linear Dis...
Dipesh Shome
 
Improving Performance of Back propagation Learning Algorithm
Improving Performance of Back propagation Learning AlgorithmImproving Performance of Back propagation Learning Algorithm
Improving Performance of Back propagation Learning Algorithm
ijsrd.com
 
Neural network 20161210_jintaekseo
Neural network 20161210_jintaekseoNeural network 20161210_jintaekseo
Neural network 20161210_jintaekseo
JinTaek Seo
 
Reinforcement Learning and Artificial Neural Nets
Reinforcement Learning and Artificial Neural NetsReinforcement Learning and Artificial Neural Nets
Reinforcement Learning and Artificial Neural Nets
Pierre de Lacaze
 
Perceptron in ANN
Perceptron in ANNPerceptron in ANN
Perceptron in ANN
Zaid Al-husseini
 
03 neural network
03 neural network03 neural network
03 neural network
Tianlu Wang
 

Similar to Back propagation (20)

CS767_Lecture_05.pptx
CS767_Lecture_05.pptxCS767_Lecture_05.pptx
CS767_Lecture_05.pptx
 
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...
A comparison-of-first-and-second-order-training-algorithms-for-artificial-neu...
 
parallel
parallelparallel
parallel
 
UofT_ML_lecture.pptx
UofT_ML_lecture.pptxUofT_ML_lecture.pptx
UofT_ML_lecture.pptx
 
nural network ER. Abhishek k. upadhyay
nural network ER. Abhishek  k. upadhyaynural network ER. Abhishek  k. upadhyay
nural network ER. Abhishek k. upadhyay
 
알고리즘 중심의 머신러닝 가이드 Ch04
알고리즘 중심의 머신러닝 가이드 Ch04알고리즘 중심의 머신러닝 가이드 Ch04
알고리즘 중심의 머신러닝 가이드 Ch04
 
SOFTCOMPUTERING TECHNICS - Unit
SOFTCOMPUTERING TECHNICS - UnitSOFTCOMPUTERING TECHNICS - Unit
SOFTCOMPUTERING TECHNICS - Unit
 
Artificial Neural Networks-Supervised Learning Models
Artificial Neural Networks-Supervised Learning ModelsArtificial Neural Networks-Supervised Learning Models
Artificial Neural Networks-Supervised Learning Models
 
Artificial Neural Networks-Supervised Learning Models
Artificial Neural Networks-Supervised Learning ModelsArtificial Neural Networks-Supervised Learning Models
Artificial Neural Networks-Supervised Learning Models
 
understanding Backpropagation neural networks
understanding Backpropagation neural networksunderstanding Backpropagation neural networks
understanding Backpropagation neural networks
 
Support Vector Machines for Computing Action Mappings in Learning Classifier ...
Support Vector Machines for Computing Action Mappings in Learning Classifier ...Support Vector Machines for Computing Action Mappings in Learning Classifier ...
Support Vector Machines for Computing Action Mappings in Learning Classifier ...
 
04 Multi-layer Feedforward Networks
04 Multi-layer Feedforward Networks04 Multi-layer Feedforward Networks
04 Multi-layer Feedforward Networks
 
Ch2 2011 s
Ch2 2011 sCh2 2011 s
Ch2 2011 s
 
Neural Networks
Neural NetworksNeural Networks
Neural Networks
 
Implementing the Perceptron Algorithm for Finding the weights of a Linear Dis...
Implementing the Perceptron Algorithm for Finding the weights of a Linear Dis...Implementing the Perceptron Algorithm for Finding the weights of a Linear Dis...
Implementing the Perceptron Algorithm for Finding the weights of a Linear Dis...
 
Improving Performance of Back propagation Learning Algorithm
Improving Performance of Back propagation Learning AlgorithmImproving Performance of Back propagation Learning Algorithm
Improving Performance of Back propagation Learning Algorithm
 
Neural network 20161210_jintaekseo
Neural network 20161210_jintaekseoNeural network 20161210_jintaekseo
Neural network 20161210_jintaekseo
 
Reinforcement Learning and Artificial Neural Nets
Reinforcement Learning and Artificial Neural NetsReinforcement Learning and Artificial Neural Nets
Reinforcement Learning and Artificial Neural Nets
 
Perceptron in ANN
Perceptron in ANNPerceptron in ANN
Perceptron in ANN
 
03 neural network
03 neural network03 neural network
03 neural network
 

Recently uploaded

Artificial Intelligence, Data and Competition – ČORBA – June 2024 OECD discus...
Artificial Intelligence, Data and Competition – ČORBA – June 2024 OECD discus...Artificial Intelligence, Data and Competition – ČORBA – June 2024 OECD discus...
Artificial Intelligence, Data and Competition – ČORBA – June 2024 OECD discus...
OECD Directorate for Financial and Enterprise Affairs
 
2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf
Frederic Leger
 
ASONAM2023_presection_slide_track-recommendation.pdf
ASONAM2023_presection_slide_track-recommendation.pdfASONAM2023_presection_slide_track-recommendation.pdf
ASONAM2023_presection_slide_track-recommendation.pdf
ToshihiroIto4
 
Pro-competitive Industrial Policy – LANE – June 2024 OECD discussion
Pro-competitive Industrial Policy – LANE – June 2024 OECD discussionPro-competitive Industrial Policy – LANE – June 2024 OECD discussion
Pro-competitive Industrial Policy – LANE – June 2024 OECD discussion
OECD Directorate for Financial and Enterprise Affairs
 
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Dutch Power
 
Artificial Intelligence, Data and Competition – LIM – June 2024 OECD discussion
Artificial Intelligence, Data and Competition – LIM – June 2024 OECD discussionArtificial Intelligence, Data and Competition – LIM – June 2024 OECD discussion
Artificial Intelligence, Data and Competition – LIM – June 2024 OECD discussion
OECD Directorate for Financial and Enterprise Affairs
 
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
SkillCertProExams
 
Gregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics PresentationGregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics Presentation
gharris9
 
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie WellsCollapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Rosie Wells
 
Tom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issueTom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issue
amekonnen
 
XP 2024 presentation: A New Look to Leadership
XP 2024 presentation: A New Look to LeadershipXP 2024 presentation: A New Look to Leadership
XP 2024 presentation: A New Look to Leadership
samililja
 
Suzanne Lagerweij - Influence Without Power - Why Empathy is Your Best Friend...
Suzanne Lagerweij - Influence Without Power - Why Empathy is Your Best Friend...Suzanne Lagerweij - Influence Without Power - Why Empathy is Your Best Friend...
Suzanne Lagerweij - Influence Without Power - Why Empathy is Your Best Friend...
Suzanne Lagerweij
 
Burning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdfBurning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdf
kkirkland2
 
Updated diagnosis. Cause and treatment of hypothyroidism
Updated diagnosis. Cause and treatment of hypothyroidismUpdated diagnosis. Cause and treatment of hypothyroidism
Updated diagnosis. Cause and treatment of hypothyroidism
Faculty of Medicine And Health Sciences
 
原版制作贝德福特大学毕业证(bedfordhire毕业证)硕士文凭原版一模一样
原版制作贝德福特大学毕业证(bedfordhire毕业证)硕士文凭原版一模一样原版制作贝德福特大学毕业证(bedfordhire毕业证)硕士文凭原版一模一样
原版制作贝德福特大学毕业证(bedfordhire毕业证)硕士文凭原版一模一样
gpww3sf4
 
Competition and Regulation in Professions and Occupations – OECD – June 2024 ...
Competition and Regulation in Professions and Occupations – OECD – June 2024 ...Competition and Regulation in Professions and Occupations – OECD – June 2024 ...
Competition and Regulation in Professions and Occupations – OECD – June 2024 ...
OECD Directorate for Financial and Enterprise Affairs
 
Artificial Intelligence, Data and Competition – OECD – June 2024 OECD discussion
Artificial Intelligence, Data and Competition – OECD – June 2024 OECD discussionArtificial Intelligence, Data and Competition – OECD – June 2024 OECD discussion
Artificial Intelligence, Data and Competition – OECD – June 2024 OECD discussion
OECD Directorate for Financial and Enterprise Affairs
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
gharris9
 
Competition and Regulation in Professions and Occupations – ROBSON – June 202...
Competition and Regulation in Professions and Occupations – ROBSON – June 202...Competition and Regulation in Professions and Occupations – ROBSON – June 202...
Competition and Regulation in Professions and Occupations – ROBSON – June 202...
OECD Directorate for Financial and Enterprise Affairs
 
Pro-competitive Industrial Policy – OECD – June 2024 OECD discussion
Pro-competitive Industrial Policy – OECD – June 2024 OECD discussionPro-competitive Industrial Policy – OECD – June 2024 OECD discussion
Pro-competitive Industrial Policy – OECD – June 2024 OECD discussion
OECD Directorate for Financial and Enterprise Affairs
 

Recently uploaded (20)

Artificial Intelligence, Data and Competition – ČORBA – June 2024 OECD discus...
Artificial Intelligence, Data and Competition – ČORBA – June 2024 OECD discus...Artificial Intelligence, Data and Competition – ČORBA – June 2024 OECD discus...
Artificial Intelligence, Data and Competition – ČORBA – June 2024 OECD discus...
 
2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf2024-05-30_meetup_devops_aix-marseille.pdf
2024-05-30_meetup_devops_aix-marseille.pdf
 
ASONAM2023_presection_slide_track-recommendation.pdf
ASONAM2023_presection_slide_track-recommendation.pdfASONAM2023_presection_slide_track-recommendation.pdf
ASONAM2023_presection_slide_track-recommendation.pdf
 
Pro-competitive Industrial Policy – LANE – June 2024 OECD discussion
Pro-competitive Industrial Policy – LANE – June 2024 OECD discussionPro-competitive Industrial Policy – LANE – June 2024 OECD discussion
Pro-competitive Industrial Policy – LANE – June 2024 OECD discussion
 
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
Presentatie 4. Jochen Cremer - TU Delft 28 mei 2024
 
Artificial Intelligence, Data and Competition – LIM – June 2024 OECD discussion
Artificial Intelligence, Data and Competition – LIM – June 2024 OECD discussionArtificial Intelligence, Data and Competition – LIM – June 2024 OECD discussion
Artificial Intelligence, Data and Competition – LIM – June 2024 OECD discussion
 
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
Mastering the Concepts Tested in the Databricks Certified Data Engineer Assoc...
 
Gregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics PresentationGregory Harris - Cycle 2 - Civics Presentation
Gregory Harris - Cycle 2 - Civics Presentation
 
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie WellsCollapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
Collapsing Narratives: Exploring Non-Linearity • a micro report by Rosie Wells
 
Tom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issueTom tresser burning issue.pptx My Burning issue
Tom tresser burning issue.pptx My Burning issue
 
XP 2024 presentation: A New Look to Leadership
XP 2024 presentation: A New Look to LeadershipXP 2024 presentation: A New Look to Leadership
XP 2024 presentation: A New Look to Leadership
 
Suzanne Lagerweij - Influence Without Power - Why Empathy is Your Best Friend...
Suzanne Lagerweij - Influence Without Power - Why Empathy is Your Best Friend...Suzanne Lagerweij - Influence Without Power - Why Empathy is Your Best Friend...
Suzanne Lagerweij - Influence Without Power - Why Empathy is Your Best Friend...
 
Burning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdfBurning Issue Presentation By Kenmaryon.pdf
Burning Issue Presentation By Kenmaryon.pdf
 
Updated diagnosis. Cause and treatment of hypothyroidism
Updated diagnosis. Cause and treatment of hypothyroidismUpdated diagnosis. Cause and treatment of hypothyroidism
Updated diagnosis. Cause and treatment of hypothyroidism
 
原版制作贝德福特大学毕业证(bedfordhire毕业证)硕士文凭原版一模一样
原版制作贝德福特大学毕业证(bedfordhire毕业证)硕士文凭原版一模一样原版制作贝德福特大学毕业证(bedfordhire毕业证)硕士文凭原版一模一样
原版制作贝德福特大学毕业证(bedfordhire毕业证)硕士文凭原版一模一样
 
Competition and Regulation in Professions and Occupations – OECD – June 2024 ...
Competition and Regulation in Professions and Occupations – OECD – June 2024 ...Competition and Regulation in Professions and Occupations – OECD – June 2024 ...
Competition and Regulation in Professions and Occupations – OECD – June 2024 ...
 
Artificial Intelligence, Data and Competition – OECD – June 2024 OECD discussion
Artificial Intelligence, Data and Competition – OECD – June 2024 OECD discussionArtificial Intelligence, Data and Competition – OECD – June 2024 OECD discussion
Artificial Intelligence, Data and Competition – OECD – June 2024 OECD discussion
 
Gregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptxGregory Harris' Civics Presentation.pptx
Gregory Harris' Civics Presentation.pptx
 
Competition and Regulation in Professions and Occupations – ROBSON – June 202...
Competition and Regulation in Professions and Occupations – ROBSON – June 202...Competition and Regulation in Professions and Occupations – ROBSON – June 202...
Competition and Regulation in Professions and Occupations – ROBSON – June 202...
 
Pro-competitive Industrial Policy – OECD – June 2024 OECD discussion
Pro-competitive Industrial Policy – OECD – June 2024 OECD discussionPro-competitive Industrial Policy – OECD – June 2024 OECD discussion
Pro-competitive Industrial Policy – OECD – June 2024 OECD discussion
 

Back propagation

  • 1. Soft Computing: Artificial Neural Networks-Back propagation Dr. Baljit Singh Khehra Professor CSE Department Baba Banda Singh Bahadur Engineering College Fatehgarh Sahib-140407, Punjab, India
  • 2. Multilayer NNs Backpropagation Algorithm  Single Perceptrons can only solve linear problems.  To solve non-linear problem, multilayer networks learned by the Backpropagation algorithm are more important .  Backpropagation – A systematic method of training multilayer ANNs. – Built on high mathematical foundation and very good application potential. – A multilayer forward network using extend gradient-descent based delta-learning rule, commonly known as back propagation (of errors) rule. – Provides a computationally efficient method for changing the weights in a feed forward network, with differentiable activation function units, to learn a training set of input- output examples. – Supervise learning.
  • 3. Back propagation Training Algorithm Training a network by back propagation involves four stages:  Initialization of weights and bias.  The Feed forward of input training pattern.  The back propagation of associated error.  The adjustment of weights.
  • 4. Architecture of Multilayer NNs Backpropagation Algorithm
  • 5. Backpropagation Training Algorithm Initialization Step1. Initialize weights and bias . (Set to small random values) Step2. While stopping condition is not satisfied, do Steps 3-10. Step3. For each training pair, do Steps 4-9 Feed forward : Step 4.Each input unit (Xi, i = 1, …..,n ) receives input signal xi and broadcasts this signal to all units in the layer above (the hidden units). Step 5. Each hidden unit (Zj, j = 1, …..p ) sums its weighted input signals applies its activation function to compute its output signal zj = f (z_inj,),and sends this signal to all units in the layer above (output units).   n i ijiojj vxnvinz 1 _
  • 6. Backpropagation Training Algorithm Step 6. Each output unit (Yk, k = 1, ….,m ) sums its weighted input signals, and applies its activation function to compute its output signal , yk = f (y_ink). Backpropagation of error : Step7. Each output unit (Yk, k =1,…..,m) receives a target pattern corresponding to the input training pattern, computes its error information term, k = (tk – yk) f' (y_ink), calculates its weight correction term (used to update wjk later). wjk =αkzj, calculates its bias correction term (used to up date wok later). wok = ak, and sends k to units in the layer below .   p j jkjokk wzwiny 1 _
  • 7. Backpropagation Training Algorithm Step 8. Each hidden unit (Zj, j = 1,……… p) sums its delta inputs (from units in the layer above), multiplies by the derivative of its activation function to calculate its error information term. j = _inj f' (z_inj), calculates its weight correction term (used to update vij later), vij = ajxi, and calculates its bias correction term (used to update voj later), voj = aj,   m k jkkj win 1 _ 
  • 8. Backpropagation Training Algorithm Update weights and biases : Step 9.Each output unit (Yk, k =1,……,m) updates its bias and weights (j=0……..p) : wjk (new) =wjk (old) + wjk, Each hidden unit (Zj, j =1……. p) updates its bias and weights (i = 0,……,n) : vij (new) = vij (old) + vij. Step 10. Test stopping condition.
  • 9. Effects of Learning rate  Learning rate determines the size of the weight adjustments made at each iteration and hence influences the rate of convergence.  Poor choice of learning rate can result in a failure in convergence.  If learning rate is too large, the search path will oscillate.  If learning rate is too small, the descent will progress in small steps significantly increasing the time to converge.  Optimal selection of learning rate is necessary.
  • 10. Momentum factor  Momentum is a parameter that is used to improve the rate of convergance.  If the momentum is added to the weight update formula, the convergence is faster.  Using momentum, the net does not proceed in the direction of the gradient, but travels in the direction of the combination of the current gradient and the previous direction for which the weight correction is made.  The main purpose of momentum is to accelerate the convergence of error propagation algorithm. )]1()([)()1( )]1()([)()1(   tvtvxtvtv twtwztwtw ijijijijij jkjkjkjkjk  
  • 11. Backpropagation for load forecasting in power generation
  • 12. Architecture of NNs for load forecasting in power generation
  • 13. Backpropagation training algorithm for load forecasting Initially weights (Set to small random values) v=rand(3, p); v0=rand(1, p); w=rand(p,1); w0=rand(1,1); Convergence =1; Epoch=0; While convergence e=0; For tp=1 to 7 ( training pairs) For j=1 to p (hidden units) z_in(j) =v0(j); For i=1 to 3 (Input units) Endfor z(j) = f (z_in(j),); Endfor );,(*),()(_)(_ jivitpXjinzjinz 
  • 14. Backpropagation training algorithm for load forecasting Y_in=w0+z*w; y(tp)=f(y_in) ; k = (T(tp) – y(tp))* f' (y_in) ; w =α*k*z; w0 = a*k,; ; For j = 1 to p ; Endfor For j = 1 to p For i=1 to n ; Endfor Endfor v0 = aj ; win kj *_   ))(_('*)1,(_)1,( jinzfjinj jj   ),(*)1,(*),( tpiXjajiv j
  • 15. Backpropagation training algorithm for load forecasting %Update weights and biases w(new) =w (old) + w; w0(new) =w0 (old) + w0; v(new) =v (old) + v; v0(new) =v0 (old) + v0; Endfor if e<TSE convergence=0; endif Epoch=Epoch+1; Endwhile display (‘ Total Epoch performed’); display (epoch); display (‘Error’); display (e); display (‘Final weights &bias’); w(new); w0(new); v(new); v0(new);     2 tpytpTee 
  • 16. Activation functions for load Forecasting  Performance of back propagation algorithm for load forecasting is measured at two different activation functions: 1. Sigmoid function Derivative of sigmoid function 2. Hyperbolic tangent function Derivative of Hyperbolic tangent function x e xf    1 1 )( 2 ' )1( )( x ax e ae xf     x x e e xf 2 2 1 1 )(      22 2 )1( 4 )(' x x e e xf    
  • 19. Testing Data for load forecasting
  • 20. Backpropagation testing algorithm for load forecasting Let be a matrix which contains data for testing, every row of matrix represents different testing set. In the proposed study, for testing 5 testing pairs are considered. Algorithm: Calculated weights and bias from training algorithm ; ; ; ; For tp=1 to 5 ( testing pairs) For j=1 to p (hidden units) Z_in(j) =v0(j); For i=1 to 3 (Input units) Endfor 35X pv 3 pv 10 1pw 110 w );,(*),()(_)(_ jivitpXjinzjinz 
  • 21. Backpropagation testing algorithm for load forecasting with Results z(j) = f (z_in(j),); Endfor y_in=w0+z*w; y(tp)=f(y_in) ; End