SlideShare a Scribd company logo
Multilayer Networks
 Multilayer networks using gradient descent algorithm.
 In Perceptron its discontinuous threshold makes it
undifferentiable and hence unsuitable for gradient descent.
Differentiable Threshold Unit:
 Sigmoid unit is a smoothed, differentiable threshold
function.
 Like the perceptron, the sigmoid unit first computes a
linear combination of its inputs, then applies a threshold
to the result. In the case of the sigmoid unit, however, the
threshold output is a continuous function of its input.
 More precisely, the sigmoid unit computes its output o as
Where
 is often called the sigmoid function or, alternatively,
the logistic function. Its output ranges between 0 and 1,
increasing monotonically with its input.
 It maps a very large input domain to a small range of
outputs, it is often referred to as the squashing function of
the unit. The sigmoid function has the useful property that
its derivative is easily expressed in terms of its output.
 The function tanh is also sometimes used in place
 of the sigmoid function
BACK PROPAGATION
ALGORITHM
 The BACKPROPAGATION ALGORITHM:
 The BACKPROPAGATION Algorithm learns the weights
for a multilayer network, given a network with a fixed set
of units and interconnections.
 It employs gradient descent to attempt to minimize the
squared error between the network output values and the
target values for these outputs.
 we are considering networks with multiple output units
rather than single units as before, we begin by redefining
E to sum the errors over all of the network output units.
 where outputs is the set of output units in the network,
and tkd and okd are the target and output values
associated with the kth output unit and training
example d.
 One major difference in the case of multilayer
networks is that the error surface can have multiple
local minima, in contrast to the single-minimum
parabolic error surface.
 This is the incremental, or stochastic gradient
descent version of BACKPROPAGATION.
 The algorithm applies to layered feedforward networks containing
2 layers of sigmoid units, with units at each layer connected to all
units from the preceding layer.
 BACK-PROPAGATION.
 Notations:
 Constructing a network with the desired number of hidden and
output units and initializing all network weights to small
random values.
 Given this fixed network structure, the main loop of the
algorithm then repeatedly iterates over the training examples.
 calculates the error of the network output for this example,
computes the gradient with respect to the error on this example,
then updates all weights in the network.
 This gradient descent step is iterated until the network performs
acceptably well.
 The gradient descent weight-update rule is similar to the
delta training rule.
 Like the delta rule, it updates each weight in proportion to
the learning rate , the input value xji to which the weight is
applied, and the error in the output of the unit. The only
difference is that the error (t - o) in the delta rule is
replaced by a more complex error term.
 The weight-update loop in BACKPROPAGATION
Algorithm be iterated thousands of times in a typical
application.
Derivation of the BACKPROPAGATION Rule
 Recall that stochastic gradient descent involves iterating
through the training examples one at a time, for each
training example d descending the gradient of the error Ed
with respect to this single example. In other words, for
each training example d every weight wji is updated by
adding to it
 where Ed is the error on training example d, summed over
all output units in the network.
 Here outputs is the set of output units in the network, tk is
the target value of unit k for training example d, and ok is
the output of unit k given training example d.
 The derivation of the stochastic gradient descent rule is
conceptually straightforward, but requires keeping track of
a number of subscripts and variables.
 We will follow the notation adding a subscript j to denote
to the jth unit of the network as follows:
 We can use the chain rule to write
 We consider two cases in turn: the case where unit j is an
output unit for the network, and the case where j is an
internal unit.
 Case 1: Training Rule for Output Unit Weights. Just as
wji can influence the rest of the network only through net,,
net, can influence the network only through oj. Therefore,
we can invoke the chain rule again to write
 We have the stochastic gradient descent rule for output
units
Case 2: Training Rule for Hidden Unit Weights.
 In the case where j is an internal, or hidden unit in the
network, the derivation of the training rule for wji
must take into account the indirect ways in which wji can
influence the network outputs and hence Ed.
Notice that netj can influence the network output
only through the units in Downstream(j).
 A variety of termination conditions can be used to halt
the procedure:
 One may choose to halt after a fixed number of iterations
through the loop, or once the error on the training
examples falls below some threshold, or once the error on
a separate validation set of examples meets some criterion.
 The choice of termination criterion is an important one,
because too few iterations can fail to reduce error
sufficiently, and too many can lead to overfitting
the training data.
ADDING MOMENTUM
 In the algorithm by making the weight update on the nth
iteration depend partially on the update that occurred
during the (n - 1)th iteration, as follows:
 is the weight update performed during the
nth iteration through the main loop of the algorithm,
and 0 < < 1 is a constant called the momentum.
 The 1st term in the right equation is weight-update rule
and 2nd term momentum term.
 The effect of is to add momentum that tends to keep the
ball rolling in the same direction from one iteration to the
next.
 This can sometimes have the effect of keeping the ball
rolling through small local minima in the error surface, or
along flat regions in the surface where the ball would stop
if there were no momentum.
It also has the effect of gradually increasing the step size
of the search in regions where the gradient is unchanging,
thereby speeding convergence.
LEARNING IN ARBITRARY ACYCLIC
NETWORKS
 The definition of BACKPROPAGATION applies only to
two-layer networks.
 In general, the value for a unit r in layer m is
computed from the values at the next deeper layer m+1
according to
 We really saying here is that this step may be repeated for
any number of hidden layers in the network.
 It is equally straightforward to generalize the algorithm to
any directed acyclic graph, regardless of whether the
network units are arranged in uniform layers as we have
assumed up to now. In the case that they are not, the rule
for calculating for any internal unit is
 Where Downstream(r) is the set of units immediately
downstream from unit r in the network: that is, all units
whose inputs include the output of unit r.
REMARKS
REMARKS ON THE BACKPROPAGATION
ALGORITHM
 Convergence and Local Minima:
 BACKPROPAGATION over multilayer networks is only
guaranteed to converge toward some local minimum in E
and not necessarily to the global minimum error.
 When gradient descent falls into a local minimum with
respect to one of these weights, it will not necessarily be
in a local minimum with respect to the other weights.
 A second perspective on local minima can be gained by
considering the manner in which network weights evolve
as the number of training iterations increases.
Common heuristics to attempt to alleviate the
problem of local minima include:
 Add a momentum term to the weight-update rule.
Momentum can sometimes carry the gradient descent
procedure through narrow local minima.
 Use stochastic gradient descent rather than true gradient
descent.
 Train multiple networks using the same data, but
initializing each network with different random weights.
 If the different training efforts lead to different local
minima, then the network with the best performance over
a separate validation data set can be selected.
Representational Power of FeedForward
Networks
 3 general rules of FeedForward network.
 Boolean functions. Every Boolean function can be
represented exactly by some network with two layers of
units, although the number of hidden units required grows
exponentially in the worst case with the number of
network inputs.
 Continuous functions. Every bounded continuous
function can be approximated with arbitrarily small error
(under a finite norm) by a network with two layers of units
 Arbitrary functions. Any function can be approximated to
arbitrary accuracy by a network with three layers of units
(Cybenko 1988). Again, the output layer uses linear units,
the two hidden layers use sigmoid units, and the number
of units required at each layer is not known in general.
 The proof of this involves showing that any function can
be approximated by a linear combination of many
localized functions that have value 0 everywhere except
for some small region, and then showing that two layers of
sigmoid units are sufficient to produce good local
approximations.
Hypothesis Space Search and Inductive
Bias
 hypothesis space is the n-dimensional Euclidean space of
the n network weights. This hypothesis space is
continuous, in contrast to the hypothesis spaces of
decision tree learning and other methods based on discrete
representations.
 Inductive Bias is depends on the interplay between the
gradient descent search and the way in which the weight
space spans the space of represent able functions.
However, one can roughly characterize it as smooth
interpolation between data points.
Hidden Layer Representations
 One intriguing property of BACKPROPAGATION its
ability to discover useful intermediate representations
at the hidden unit layers inside the network.
Generalization, Overfitting, and Stopping
Criterion
 BACKPROPAGATION is susceptible to overfitting the
training examples at the cost of decreasing generalization
accuracy over other unseen examples.
 BACKPROPAGATION will often be able to create
overly complex decision surfaces that fit noise in the
training data or unrepresentative characteristics of the
particular training sample.
 Several techniques are available to address the overfitting
problem for BACKPROPAGATION learning. One
approach, known as weight decay, is to decrease each
weight by some small factor during each iteration.
 One of the most successful methods for overcoming the
overfitting problem is to simply provide a set of validation
data to the algorithm in addition to the training data.
 The algorithm monitors the error with respect to this
validation set, while using the training set to drive the
gradient descent search.
 The problem of overfitting is most severe for small
training sets.
 In these cases, a k-fold cross-validation approach is
sometimes used, in which cross validation is performed k
different times, each time using a different partitioning of
the data into training and validation sets, and the results
are then averaged.
 In one version of this approach, them available examples
are partitioned into k disjoint subsets, each of size m/k.
 The cross validation procedure is then run k times, each
time using a different one of these subsets as the
validation set and combining the other subsets for the
training set.
EXAMPLES
FACE RECOGNITION SYSTEM
CONTD…
REFERENCE
 https://www.youtube.com/watch?v=YCsZQ_nMDW0
 https://www.youtube.com/watch?v=Kh5milGbyDU
 https://www.slideshare.net/infobuzz/back-
propagation
 https://www.youtube.com/watch?v=GJXKOrqZauk

More Related Content

What's hot

Learning in AI
Learning in AILearning in AI
Learning in AI
Minakshi Atre
 
Classification using back propagation algorithm
Classification using back propagation algorithmClassification using back propagation algorithm
Classification using back propagation algorithm
KIRAN R
 
Performance analysis and randamized agoritham
Performance analysis and randamized agorithamPerformance analysis and randamized agoritham
Performance analysis and randamized agoritham
lilyMalar1
 
Multilayer & Back propagation algorithm
Multilayer & Back propagation algorithmMultilayer & Back propagation algorithm
Multilayer & Back propagation algorithm
swapnac12
 
Space complexity-DAA.pptx
Space complexity-DAA.pptxSpace complexity-DAA.pptx
Space complexity-DAA.pptx
mounikanarra3
 
Lecture 3 threads
Lecture 3   threadsLecture 3   threads
Lecture 3 threads
Kumbirai Junior Muzavazi
 
ML_ Unit_1_PART_A
ML_ Unit_1_PART_AML_ Unit_1_PART_A
ML_ Unit_1_PART_A
Srimatre K
 
Loop optimization
Loop optimizationLoop optimization
Loop optimization
Vivek Gandhi
 
Feature selection concepts and methods
Feature selection concepts and methodsFeature selection concepts and methods
Feature selection concepts and methods
Reza Ramezani
 
Computational Learning Theory
Computational Learning TheoryComputational Learning Theory
Computational Learning Theory
butest
 
ML_Unit_1_Part_C
ML_Unit_1_Part_CML_Unit_1_Part_C
ML_Unit_1_Part_C
Srimatre K
 
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering College
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering CollegeBayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering College
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering College
Dhivyaa C.R
 
Analytical learning
Analytical learningAnalytical learning
Analytical learning
swapnac12
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
Bablu Shofi
 
unit 4 ai.pptx
unit 4 ai.pptxunit 4 ai.pptx
unit 4 ai.pptx
ShivaDhfm
 
Concept learning and candidate elimination algorithm
Concept learning and candidate elimination algorithmConcept learning and candidate elimination algorithm
Concept learning and candidate elimination algorithm
swapnac12
 
Bayesian learning
Bayesian learningBayesian learning
Bayesian learning
Vignesh Saravanan
 
Introdution and designing a learning system
Introdution and designing a learning systemIntrodution and designing a learning system
Introdution and designing a learning system
swapnac12
 
Java threads
Java threadsJava threads
Java threads
Prabhakaran V M
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
sandeep54552
 

What's hot (20)

Learning in AI
Learning in AILearning in AI
Learning in AI
 
Classification using back propagation algorithm
Classification using back propagation algorithmClassification using back propagation algorithm
Classification using back propagation algorithm
 
Performance analysis and randamized agoritham
Performance analysis and randamized agorithamPerformance analysis and randamized agoritham
Performance analysis and randamized agoritham
 
Multilayer & Back propagation algorithm
Multilayer & Back propagation algorithmMultilayer & Back propagation algorithm
Multilayer & Back propagation algorithm
 
Space complexity-DAA.pptx
Space complexity-DAA.pptxSpace complexity-DAA.pptx
Space complexity-DAA.pptx
 
Lecture 3 threads
Lecture 3   threadsLecture 3   threads
Lecture 3 threads
 
ML_ Unit_1_PART_A
ML_ Unit_1_PART_AML_ Unit_1_PART_A
ML_ Unit_1_PART_A
 
Loop optimization
Loop optimizationLoop optimization
Loop optimization
 
Feature selection concepts and methods
Feature selection concepts and methodsFeature selection concepts and methods
Feature selection concepts and methods
 
Computational Learning Theory
Computational Learning TheoryComputational Learning Theory
Computational Learning Theory
 
ML_Unit_1_Part_C
ML_Unit_1_Part_CML_Unit_1_Part_C
ML_Unit_1_Part_C
 
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering College
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering CollegeBayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering College
Bayesian Learning by Dr.C.R.Dhivyaa Kongu Engineering College
 
Analytical learning
Analytical learningAnalytical learning
Analytical learning
 
Informed search (heuristics)
Informed search (heuristics)Informed search (heuristics)
Informed search (heuristics)
 
unit 4 ai.pptx
unit 4 ai.pptxunit 4 ai.pptx
unit 4 ai.pptx
 
Concept learning and candidate elimination algorithm
Concept learning and candidate elimination algorithmConcept learning and candidate elimination algorithm
Concept learning and candidate elimination algorithm
 
Bayesian learning
Bayesian learningBayesian learning
Bayesian learning
 
Introdution and designing a learning system
Introdution and designing a learning systemIntrodution and designing a learning system
Introdution and designing a learning system
 
Java threads
Java threadsJava threads
Java threads
 
Greedy algorithms
Greedy algorithmsGreedy algorithms
Greedy algorithms
 

Similar to ML_ Unit 2_Part_B

Unit ii supervised ii
Unit ii supervised iiUnit ii supervised ii
Unit ii supervised ii
Indira Priyadarsini
 
Web Spam Classification Using Supervised Artificial Neural Network Algorithms
Web Spam Classification Using Supervised Artificial Neural Network AlgorithmsWeb Spam Classification Using Supervised Artificial Neural Network Algorithms
Web Spam Classification Using Supervised Artificial Neural Network Algorithms
aciijournal
 
Web spam classification using supervised artificial neural network algorithms
Web spam classification using supervised artificial neural network algorithmsWeb spam classification using supervised artificial neural network algorithms
Web spam classification using supervised artificial neural network algorithms
aciijournal
 
rbm_hls
rbm_hlsrbm_hls
rbm_hls
David Lau
 
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
 
Back propagation
Back propagationBack propagation
Back propagation
Nagarajan
 
Lec 6-bp
Lec 6-bpLec 6-bp
Lec 6-bp
Taymoor Nazmy
 
deep CNN vs conventional ML
deep CNN vs conventional MLdeep CNN vs conventional ML
deep CNN vs conventional ML
Chao Han chaohan@vt.edu
 
Artificial neural networks in hydrology
Artificial neural networks in hydrology Artificial neural networks in hydrology
Artificial neural networks in hydrology
Jonathan D'Cruz
 
Deep learning concepts
Deep learning conceptsDeep learning concepts
Deep learning concepts
Joe li
 
Neural network
Neural networkNeural network
Neural network
EasyMedico.com
 
ARTIFICIAL NEURAL NETWORK APPROACH TO MODELING OF POLYPROPYLENE REACTOR
ARTIFICIAL NEURAL NETWORK APPROACH TO MODELING OF POLYPROPYLENE REACTORARTIFICIAL NEURAL NETWORK APPROACH TO MODELING OF POLYPROPYLENE REACTOR
ARTIFICIAL NEURAL NETWORK APPROACH TO MODELING OF POLYPROPYLENE REACTOR
ijac123
 
Unit iii update
Unit iii updateUnit iii update
Unit iii update
Indira Priyadarsini
 
N ns 1
N ns 1N ns 1
N ns 1
Thy Selaroth
 
Introduction Of Artificial neural network
Introduction Of Artificial neural networkIntroduction Of Artificial neural network
Introduction Of Artificial neural network
Nagarajan
 
Neural Networks on Steroids (Poster)
Neural Networks on Steroids (Poster)Neural Networks on Steroids (Poster)
Neural Networks on Steroids (Poster)
Adam Blevins
 
08 neural networks
08 neural networks08 neural networks
08 neural networks
ankit_ppt
 
Design of airfoil using backpropagation training with mixed approach
Design of airfoil using backpropagation training with mixed approachDesign of airfoil using backpropagation training with mixed approach
Design of airfoil using backpropagation training with mixed approach
Editor Jacotech
 
Design of airfoil using backpropagation training with mixed approach
Design of airfoil using backpropagation training with mixed approachDesign of airfoil using backpropagation training with mixed approach
Design of airfoil using backpropagation training with mixed approach
Editor Jacotech
 
Modeling of neural image compression using gradient decent technology
Modeling of neural image compression using gradient decent technologyModeling of neural image compression using gradient decent technology
Modeling of neural image compression using gradient decent technology
theijes
 

Similar to ML_ Unit 2_Part_B (20)

Unit ii supervised ii
Unit ii supervised iiUnit ii supervised ii
Unit ii supervised ii
 
Web Spam Classification Using Supervised Artificial Neural Network Algorithms
Web Spam Classification Using Supervised Artificial Neural Network AlgorithmsWeb Spam Classification Using Supervised Artificial Neural Network Algorithms
Web Spam Classification Using Supervised Artificial Neural Network Algorithms
 
Web spam classification using supervised artificial neural network algorithms
Web spam classification using supervised artificial neural network algorithmsWeb spam classification using supervised artificial neural network algorithms
Web spam classification using supervised artificial neural network algorithms
 
rbm_hls
rbm_hlsrbm_hls
rbm_hls
 
nural network ER. Abhishek k. upadhyay
nural network ER. Abhishek  k. upadhyaynural network ER. Abhishek  k. upadhyay
nural network ER. Abhishek k. upadhyay
 
Back propagation
Back propagationBack propagation
Back propagation
 
Lec 6-bp
Lec 6-bpLec 6-bp
Lec 6-bp
 
deep CNN vs conventional ML
deep CNN vs conventional MLdeep CNN vs conventional ML
deep CNN vs conventional ML
 
Artificial neural networks in hydrology
Artificial neural networks in hydrology Artificial neural networks in hydrology
Artificial neural networks in hydrology
 
Deep learning concepts
Deep learning conceptsDeep learning concepts
Deep learning concepts
 
Neural network
Neural networkNeural network
Neural network
 
ARTIFICIAL NEURAL NETWORK APPROACH TO MODELING OF POLYPROPYLENE REACTOR
ARTIFICIAL NEURAL NETWORK APPROACH TO MODELING OF POLYPROPYLENE REACTORARTIFICIAL NEURAL NETWORK APPROACH TO MODELING OF POLYPROPYLENE REACTOR
ARTIFICIAL NEURAL NETWORK APPROACH TO MODELING OF POLYPROPYLENE REACTOR
 
Unit iii update
Unit iii updateUnit iii update
Unit iii update
 
N ns 1
N ns 1N ns 1
N ns 1
 
Introduction Of Artificial neural network
Introduction Of Artificial neural networkIntroduction Of Artificial neural network
Introduction Of Artificial neural network
 
Neural Networks on Steroids (Poster)
Neural Networks on Steroids (Poster)Neural Networks on Steroids (Poster)
Neural Networks on Steroids (Poster)
 
08 neural networks
08 neural networks08 neural networks
08 neural networks
 
Design of airfoil using backpropagation training with mixed approach
Design of airfoil using backpropagation training with mixed approachDesign of airfoil using backpropagation training with mixed approach
Design of airfoil using backpropagation training with mixed approach
 
Design of airfoil using backpropagation training with mixed approach
Design of airfoil using backpropagation training with mixed approachDesign of airfoil using backpropagation training with mixed approach
Design of airfoil using backpropagation training with mixed approach
 
Modeling of neural image compression using gradient decent technology
Modeling of neural image compression using gradient decent technologyModeling of neural image compression using gradient decent technology
Modeling of neural image compression using gradient decent technology
 

More from Srimatre K

Internet of things unit-1
Internet of things unit-1Internet of things unit-1
Internet of things unit-1
Srimatre K
 
Formal Languages and Automata Theory unit 5
Formal Languages and Automata Theory unit 5Formal Languages and Automata Theory unit 5
Formal Languages and Automata Theory unit 5
Srimatre K
 
Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4
Srimatre K
 
Formal Languages and Automata Theory unit 3
Formal Languages and Automata Theory unit 3Formal Languages and Automata Theory unit 3
Formal Languages and Automata Theory unit 3
Srimatre K
 
Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2
Srimatre K
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
Srimatre K
 

More from Srimatre K (6)

Internet of things unit-1
Internet of things unit-1Internet of things unit-1
Internet of things unit-1
 
Formal Languages and Automata Theory unit 5
Formal Languages and Automata Theory unit 5Formal Languages and Automata Theory unit 5
Formal Languages and Automata Theory unit 5
 
Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4Formal Languages and Automata Theory unit 4
Formal Languages and Automata Theory unit 4
 
Formal Languages and Automata Theory unit 3
Formal Languages and Automata Theory unit 3Formal Languages and Automata Theory unit 3
Formal Languages and Automata Theory unit 3
 
Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2Formal Languages and Automata Theory unit 2
Formal Languages and Automata Theory unit 2
 
Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1Formal Languages and Automata Theory Unit 1
Formal Languages and Automata Theory Unit 1
 

Recently uploaded

BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
paigestewart1632
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
heathfieldcps1
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
NgcHiNguyn25
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
TechSoup
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
Celine George
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
sayalidalavi006
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 

Recently uploaded (20)

BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Cognitive Development Adolescence Psychology
Cognitive Development Adolescence PsychologyCognitive Development Adolescence Psychology
Cognitive Development Adolescence Psychology
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
The basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptxThe basics of sentences session 6pptx.pptx
The basics of sentences session 6pptx.pptx
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
Life upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for studentLife upper-Intermediate B2 Workbook for student
Life upper-Intermediate B2 Workbook for student
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Walmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdfWalmart Business+ and Spark Good for Nonprofits.pdf
Walmart Business+ and Spark Good for Nonprofits.pdf
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17How to Make a Field Mandatory in Odoo 17
How to Make a Field Mandatory in Odoo 17
 
Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5Community pharmacy- Social and preventive pharmacy UNIT 5
Community pharmacy- Social and preventive pharmacy UNIT 5
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 

ML_ Unit 2_Part_B

  • 1.
  • 2. Multilayer Networks  Multilayer networks using gradient descent algorithm.  In Perceptron its discontinuous threshold makes it undifferentiable and hence unsuitable for gradient descent.
  • 3. Differentiable Threshold Unit:  Sigmoid unit is a smoothed, differentiable threshold function.  Like the perceptron, the sigmoid unit first computes a linear combination of its inputs, then applies a threshold to the result. In the case of the sigmoid unit, however, the threshold output is a continuous function of its input.
  • 4.  More precisely, the sigmoid unit computes its output o as Where  is often called the sigmoid function or, alternatively, the logistic function. Its output ranges between 0 and 1, increasing monotonically with its input.  It maps a very large input domain to a small range of outputs, it is often referred to as the squashing function of the unit. The sigmoid function has the useful property that its derivative is easily expressed in terms of its output.  The function tanh is also sometimes used in place  of the sigmoid function
  • 6.  The BACKPROPAGATION ALGORITHM:  The BACKPROPAGATION Algorithm learns the weights for a multilayer network, given a network with a fixed set of units and interconnections.  It employs gradient descent to attempt to minimize the squared error between the network output values and the target values for these outputs.  we are considering networks with multiple output units rather than single units as before, we begin by redefining E to sum the errors over all of the network output units.
  • 7.  where outputs is the set of output units in the network, and tkd and okd are the target and output values associated with the kth output unit and training example d.  One major difference in the case of multilayer networks is that the error surface can have multiple local minima, in contrast to the single-minimum parabolic error surface.  This is the incremental, or stochastic gradient descent version of BACKPROPAGATION.
  • 8.
  • 9.
  • 10.  The algorithm applies to layered feedforward networks containing 2 layers of sigmoid units, with units at each layer connected to all units from the preceding layer.  BACK-PROPAGATION.  Notations:
  • 11.  Constructing a network with the desired number of hidden and output units and initializing all network weights to small random values.  Given this fixed network structure, the main loop of the algorithm then repeatedly iterates over the training examples.  calculates the error of the network output for this example, computes the gradient with respect to the error on this example, then updates all weights in the network.  This gradient descent step is iterated until the network performs acceptably well.
  • 12.  The gradient descent weight-update rule is similar to the delta training rule.  Like the delta rule, it updates each weight in proportion to the learning rate , the input value xji to which the weight is applied, and the error in the output of the unit. The only difference is that the error (t - o) in the delta rule is replaced by a more complex error term.  The weight-update loop in BACKPROPAGATION Algorithm be iterated thousands of times in a typical application.
  • 13. Derivation of the BACKPROPAGATION Rule  Recall that stochastic gradient descent involves iterating through the training examples one at a time, for each training example d descending the gradient of the error Ed with respect to this single example. In other words, for each training example d every weight wji is updated by adding to it  where Ed is the error on training example d, summed over all output units in the network.  Here outputs is the set of output units in the network, tk is the target value of unit k for training example d, and ok is the output of unit k given training example d.
  • 14.  The derivation of the stochastic gradient descent rule is conceptually straightforward, but requires keeping track of a number of subscripts and variables.  We will follow the notation adding a subscript j to denote to the jth unit of the network as follows:  We can use the chain rule to write
  • 15.
  • 16.  We consider two cases in turn: the case where unit j is an output unit for the network, and the case where j is an internal unit.  Case 1: Training Rule for Output Unit Weights. Just as wji can influence the rest of the network only through net,, net, can influence the network only through oj. Therefore, we can invoke the chain rule again to write
  • 17.
  • 18.  We have the stochastic gradient descent rule for output units
  • 19. Case 2: Training Rule for Hidden Unit Weights.  In the case where j is an internal, or hidden unit in the network, the derivation of the training rule for wji must take into account the indirect ways in which wji can influence the network outputs and hence Ed. Notice that netj can influence the network output only through the units in Downstream(j).
  • 20.
  • 21.  A variety of termination conditions can be used to halt the procedure:  One may choose to halt after a fixed number of iterations through the loop, or once the error on the training examples falls below some threshold, or once the error on a separate validation set of examples meets some criterion.  The choice of termination criterion is an important one, because too few iterations can fail to reduce error sufficiently, and too many can lead to overfitting the training data.
  • 22. ADDING MOMENTUM  In the algorithm by making the weight update on the nth iteration depend partially on the update that occurred during the (n - 1)th iteration, as follows:  is the weight update performed during the nth iteration through the main loop of the algorithm, and 0 < < 1 is a constant called the momentum.  The 1st term in the right equation is weight-update rule and 2nd term momentum term.
  • 23.  The effect of is to add momentum that tends to keep the ball rolling in the same direction from one iteration to the next.  This can sometimes have the effect of keeping the ball rolling through small local minima in the error surface, or along flat regions in the surface where the ball would stop if there were no momentum. It also has the effect of gradually increasing the step size of the search in regions where the gradient is unchanging, thereby speeding convergence.
  • 24. LEARNING IN ARBITRARY ACYCLIC NETWORKS  The definition of BACKPROPAGATION applies only to two-layer networks.  In general, the value for a unit r in layer m is computed from the values at the next deeper layer m+1 according to  We really saying here is that this step may be repeated for any number of hidden layers in the network.
  • 25.  It is equally straightforward to generalize the algorithm to any directed acyclic graph, regardless of whether the network units are arranged in uniform layers as we have assumed up to now. In the case that they are not, the rule for calculating for any internal unit is  Where Downstream(r) is the set of units immediately downstream from unit r in the network: that is, all units whose inputs include the output of unit r.
  • 27. REMARKS ON THE BACKPROPAGATION ALGORITHM  Convergence and Local Minima:  BACKPROPAGATION over multilayer networks is only guaranteed to converge toward some local minimum in E and not necessarily to the global minimum error.  When gradient descent falls into a local minimum with respect to one of these weights, it will not necessarily be in a local minimum with respect to the other weights.  A second perspective on local minima can be gained by considering the manner in which network weights evolve as the number of training iterations increases.
  • 28. Common heuristics to attempt to alleviate the problem of local minima include:  Add a momentum term to the weight-update rule. Momentum can sometimes carry the gradient descent procedure through narrow local minima.  Use stochastic gradient descent rather than true gradient descent.  Train multiple networks using the same data, but initializing each network with different random weights.  If the different training efforts lead to different local minima, then the network with the best performance over a separate validation data set can be selected.
  • 29. Representational Power of FeedForward Networks  3 general rules of FeedForward network.  Boolean functions. Every Boolean function can be represented exactly by some network with two layers of units, although the number of hidden units required grows exponentially in the worst case with the number of network inputs.  Continuous functions. Every bounded continuous function can be approximated with arbitrarily small error (under a finite norm) by a network with two layers of units
  • 30.  Arbitrary functions. Any function can be approximated to arbitrary accuracy by a network with three layers of units (Cybenko 1988). Again, the output layer uses linear units, the two hidden layers use sigmoid units, and the number of units required at each layer is not known in general.  The proof of this involves showing that any function can be approximated by a linear combination of many localized functions that have value 0 everywhere except for some small region, and then showing that two layers of sigmoid units are sufficient to produce good local approximations.
  • 31. Hypothesis Space Search and Inductive Bias  hypothesis space is the n-dimensional Euclidean space of the n network weights. This hypothesis space is continuous, in contrast to the hypothesis spaces of decision tree learning and other methods based on discrete representations.  Inductive Bias is depends on the interplay between the gradient descent search and the way in which the weight space spans the space of represent able functions. However, one can roughly characterize it as smooth interpolation between data points.
  • 32. Hidden Layer Representations  One intriguing property of BACKPROPAGATION its ability to discover useful intermediate representations at the hidden unit layers inside the network.
  • 33. Generalization, Overfitting, and Stopping Criterion  BACKPROPAGATION is susceptible to overfitting the training examples at the cost of decreasing generalization accuracy over other unseen examples.  BACKPROPAGATION will often be able to create overly complex decision surfaces that fit noise in the training data or unrepresentative characteristics of the particular training sample.  Several techniques are available to address the overfitting problem for BACKPROPAGATION learning. One approach, known as weight decay, is to decrease each weight by some small factor during each iteration.
  • 34.  One of the most successful methods for overcoming the overfitting problem is to simply provide a set of validation data to the algorithm in addition to the training data.  The algorithm monitors the error with respect to this validation set, while using the training set to drive the gradient descent search.  The problem of overfitting is most severe for small training sets.
  • 35.  In these cases, a k-fold cross-validation approach is sometimes used, in which cross validation is performed k different times, each time using a different partitioning of the data into training and validation sets, and the results are then averaged.  In one version of this approach, them available examples are partitioned into k disjoint subsets, each of size m/k.  The cross validation procedure is then run k times, each time using a different one of these subsets as the validation set and combining the other subsets for the training set.
  • 39.
  • 40.
  • 41. REFERENCE  https://www.youtube.com/watch?v=YCsZQ_nMDW0  https://www.youtube.com/watch?v=Kh5milGbyDU  https://www.slideshare.net/infobuzz/back- propagation  https://www.youtube.com/watch?v=GJXKOrqZauk