SlideShare a Scribd company logo
1 of 36
Download to read offline
AN INTRODUCTION TO
ARTIFICIAL NEURAL NETWORKS
PART - IV
Dr.S.SASIKALA
Department of ECE
Kumaraguru College of Technology
Coimbatore
Department of
Electronics and Communication Engineering
Since 1986
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
1
SHALLOW NEURAL NETWORK
MODELS
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
2
Shallow Neural Networks
• A neural network with one hidden layer is considered
a shallow neural network whereas a network with
many hidden layers and a large number of neurons in
each layer is considered a deep neural network.
• A “shallow” neural network has only three layers of
neurons:
➢An input layer that accepts the independent
variables or inputs of the model
➢One hidden layer
➢An output layer that generates predictions
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
3
Shallow Machine Learning
• The features extraction in Shallow Machine
Learning is a manual process that requires
domain knowledge of the data that we
are learning from.
• In other words, "Shallow Learning" is a type
of machine learning where we learn from
data described by pre-defined features.
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
4
Shallow Neural Networks
• Multilayer Perceptron Network (MLPN)
• Radial Basis Function Network (RBFN)
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
5
MULTI-LAYER PERCEPTRON (MLP)
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
6
We will introduce the MLP and the backpropagation
algorithm which is used to train it
MLP used to describe any general feedforward (no
recurrent connections) network
However, we will concentrate on nets with units
arranged in layers
x1
xn
7
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Different books refer to the above as either 4 layer (no. of
layers of neurons) or 3 layer (no. of layers of adaptive
weights). We will follow the latter convention
1st question:
what do the extra layers gain you? Start with looking at
what a single layer can’t do
x1
xn
8
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Perceptron Learning Theorem
• Recap: A perceptron (threshold unit) can
learn anything that it can represent (i.e.
anything separable with a hyperplane)
9
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
The Exclusive OR problem
A Perceptron cannot represent Exclusive OR
since it is not linearly separable.
10
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
11
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Minsky & Papert (1969) offered solution to XOR problem by
combining perceptron unit responses using a second layer of
Units. Piecewise linear classification using an MLP with
threshold (perceptron) units
1
2
+1
+1
3
12
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
xn
x1
x2
Input
Output
Three-layer networks
Hidden layers
13
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Properties of architecture
• No connections within a layer
y f w x b
i ij j i
j
m
= +

=
( )
1
Each unit is a perceptron
14
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Properties of architecture
• No connections within a layer
• No direct connections between input and output layers
•
y f w x b
i ij j i
j
m
= +

=
( )
1
Each unit is a perceptron
15
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Properties of architecture
• No connections within a layer
• No direct connections between input and output layers
• Fully connected between layers
•
y f w x b
i ij j i
j
m
= +

=
( )
1
Each unit is a perceptron
16
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Properties of architecture
• No connections within a layer
• No direct connections between input and output layers
• Fully connected between layers
• Often more than 3 layers
• Number of output units need not equal number of input units
• Number of hidden units per layer can be more or less than
input or output units
y f w x b
i ij j i
j
m
= +

=
( )
1
Each unit is a perceptron
Often include bias as an extra weight
17
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
What do each of the layers do?
1st layer draws
linear boundaries
2nd layer combines
the boundaries
3rd layer can generate
arbitrarily complex
boundaries
18
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Backward pass phase: computes ‘error signal’, propagates
the error backwards through network starting at output units
(where the error is the difference between actual and desired
output values)
Forward pass phase: computes ‘functional signal’, feed forward
propagation of input pattern signals through network
Backpropagation Learning Algorithm ‘BP’
Solution to credit assignment problem in MLP. Rumelhart, Hinton and
Williams (1986) (though actually invented earlier in a PhD thesis
relating to economics)
BP has two phases:
19
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Conceptually: Forward Activity -
Backward Error
20
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Conceptually: Forward Activity -
Backward Error
21
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
MLP – with Single Hidden Layer
22
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
https://www.cse.unsw.edu.au/~cs9417ml/MLP2/BackPropagation.html
https://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-example/
Forward Propagation of Activity
• Step 1: Initialize weights at random, choose a
learning rate η
• Until network is trained:
• For each training example i.e. input pattern and
target output(s):
• Step 2: Do forward pass through net (with fixed
weights) to produce output(s)
– i.e., in Forward Direction, layer by layer:
• Inputs applied
• Multiplied by weights
• Summed
• Squashed by sigmoid activation function
• Output passed to each neuron in next layer
– Repeat above until network output(s) produced
23
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Step 3. Back-propagation of error
• Compute error (delta or local gradient) for each
output unit δ k
• Layer-by-layer, compute error (delta or local
gradient) for each hidden unit δ j by backpropagating
errors (as shown previously)
Step 4: Next, update all the weights Δwij
By gradient descent, and go back to Step 2
− The overall MLP learning algorithm, involving
forward pass and backpropagation of error
(until the network training completion), is
known as the Generalised Delta Rule (GDR),
or more commonly, the Back Propagation
(BP) algorithm
24
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Back Propagation Algorithm Summary
25
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
MLP/BP: A worked example
26
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Worked example: Forward Pass
27
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Worked example: Forward Pass
28
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Worked example: Backward Pass
29
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Worked example: Update Weights
Using Generalized Delta Rule (BP)
30
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Similarly for the all weights wij:
31
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Verification that it works
32
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Training
• This was a single iteration of back-prop
• Training requires many iterations with many
training examples or epochs (one epoch is entire
presentation of complete training set)
• It can be slow !
• Note that computation in MLP is local (with
respect to each neuron)
• Parallel computation implementation is also
possible
33
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
Training and testing data
• How many examples ?
– The more the merrier !
• Disjoint training and testing data sets
– learn from training data but evaluate
performance (generalization ability) on
unseen test data
• Aim: minimize error on test data
34
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
35
August 27, 2022
IEEE EAB & IEEE MAS Sponsored
TryEngineering Workshop on Artificial
Intelligence for All
36

More Related Content

Similar to Introduction to Artificial Neural Networks - PART IV.pdf

Fundamental of deep learning
Fundamental of deep learningFundamental of deep learning
Fundamental of deep learningStanley Wang
 
Deep Learning via Semi-Supervised Embedding (第 7 回 Deep Learning 勉強会資料; 大澤)
Deep Learning via Semi-Supervised Embedding (第 7 回 Deep Learning 勉強会資料; 大澤)Deep Learning via Semi-Supervised Embedding (第 7 回 Deep Learning 勉強会資料; 大澤)
Deep Learning via Semi-Supervised Embedding (第 7 回 Deep Learning 勉強会資料; 大澤)Ohsawa Goodfellow
 
[RSS2023] Local Object Crop Collision Network for Efficient Simulation
[RSS2023] Local Object Crop Collision Network for Efficient Simulation[RSS2023] Local Object Crop Collision Network for Efficient Simulation
[RSS2023] Local Object Crop Collision Network for Efficient SimulationDongwonSon1
 
Introduction to Artificial Neural Networks - PART III.pdf
Introduction to Artificial Neural Networks - PART III.pdfIntroduction to Artificial Neural Networks - PART III.pdf
Introduction to Artificial Neural Networks - PART III.pdfSasiKala592103
 
Deep Learning for Natural Language Processing
Deep Learning for Natural Language ProcessingDeep Learning for Natural Language Processing
Deep Learning for Natural Language ProcessingIRJET Journal
 
Pres Tesi LM-2016+transcript_eng
Pres Tesi LM-2016+transcript_engPres Tesi LM-2016+transcript_eng
Pres Tesi LM-2016+transcript_engDaniele Ciriello
 
Deep Implicit Layers: Learning Structured Problems with Neural Networks
Deep Implicit Layers: Learning Structured Problems with Neural NetworksDeep Implicit Layers: Learning Structured Problems with Neural Networks
Deep Implicit Layers: Learning Structured Problems with Neural NetworksSangwoo Mo
 
UNetEliyaLaialy (2).pptx
UNetEliyaLaialy (2).pptxUNetEliyaLaialy (2).pptx
UNetEliyaLaialy (2).pptxNoorUlHaq47
 
Unsupervised Feature Learning
Unsupervised Feature LearningUnsupervised Feature Learning
Unsupervised Feature LearningAmgad Muhammad
 
Handwritten Digit Recognition using Convolutional Neural Networks
Handwritten Digit Recognition using Convolutional Neural  NetworksHandwritten Digit Recognition using Convolutional Neural  Networks
Handwritten Digit Recognition using Convolutional Neural NetworksIRJET Journal
 
Simulation of Single and Multilayer of Artificial Neural Network using Verilog
Simulation of Single and Multilayer of Artificial Neural Network using VerilogSimulation of Single and Multilayer of Artificial Neural Network using Verilog
Simulation of Single and Multilayer of Artificial Neural Network using Verilogijsrd.com
 
CS6270 Virtual Machines - Java Virtual Machine Architecture and APIs
CS6270 Virtual Machines - Java Virtual Machine Architecture and APIsCS6270 Virtual Machines - Java Virtual Machine Architecture and APIs
CS6270 Virtual Machines - Java Virtual Machine Architecture and APIsKwangshin Oh
 
Explicit Density Models
Explicit Density ModelsExplicit Density Models
Explicit Density ModelsSangwoo Mo
 
AILABS - Lecture Series - Is AI the New Electricity? Topic:- Classification a...
AILABS - Lecture Series - Is AI the New Electricity? Topic:- Classification a...AILABS - Lecture Series - Is AI the New Electricity? Topic:- Classification a...
AILABS - Lecture Series - Is AI the New Electricity? Topic:- Classification a...AILABS Academy
 
Convolutional Neural Networks - Xavier Giro - UPC TelecomBCN Barcelona 2020
Convolutional Neural Networks - Xavier Giro - UPC TelecomBCN Barcelona 2020Convolutional Neural Networks - Xavier Giro - UPC TelecomBCN Barcelona 2020
Convolutional Neural Networks - Xavier Giro - UPC TelecomBCN Barcelona 2020Universitat Politècnica de Catalunya
 
Introduction To Machine Learning and Neural Networks
Introduction To Machine Learning and Neural NetworksIntroduction To Machine Learning and Neural Networks
Introduction To Machine Learning and Neural Networks德平 黄
 
Chainer OpenPOWER developer congress HandsON 20170522_ota
Chainer OpenPOWER developer congress HandsON 20170522_otaChainer OpenPOWER developer congress HandsON 20170522_ota
Chainer OpenPOWER developer congress HandsON 20170522_otaPreferred Networks
 

Similar to Introduction to Artificial Neural Networks - PART IV.pdf (20)

Fundamental of deep learning
Fundamental of deep learningFundamental of deep learning
Fundamental of deep learning
 
Deep Learning via Semi-Supervised Embedding (第 7 回 Deep Learning 勉強会資料; 大澤)
Deep Learning via Semi-Supervised Embedding (第 7 回 Deep Learning 勉強会資料; 大澤)Deep Learning via Semi-Supervised Embedding (第 7 回 Deep Learning 勉強会資料; 大澤)
Deep Learning via Semi-Supervised Embedding (第 7 回 Deep Learning 勉強会資料; 大澤)
 
[RSS2023] Local Object Crop Collision Network for Efficient Simulation
[RSS2023] Local Object Crop Collision Network for Efficient Simulation[RSS2023] Local Object Crop Collision Network for Efficient Simulation
[RSS2023] Local Object Crop Collision Network for Efficient Simulation
 
17515
1751517515
17515
 
Introduction to Artificial Neural Networks - PART III.pdf
Introduction to Artificial Neural Networks - PART III.pdfIntroduction to Artificial Neural Networks - PART III.pdf
Introduction to Artificial Neural Networks - PART III.pdf
 
Unit ii supervised ii
Unit ii supervised iiUnit ii supervised ii
Unit ii supervised ii
 
Deep Learning for Natural Language Processing
Deep Learning for Natural Language ProcessingDeep Learning for Natural Language Processing
Deep Learning for Natural Language Processing
 
Pres Tesi LM-2016+transcript_eng
Pres Tesi LM-2016+transcript_engPres Tesi LM-2016+transcript_eng
Pres Tesi LM-2016+transcript_eng
 
Deep Implicit Layers: Learning Structured Problems with Neural Networks
Deep Implicit Layers: Learning Structured Problems with Neural NetworksDeep Implicit Layers: Learning Structured Problems with Neural Networks
Deep Implicit Layers: Learning Structured Problems with Neural Networks
 
UNetEliyaLaialy (2).pptx
UNetEliyaLaialy (2).pptxUNetEliyaLaialy (2).pptx
UNetEliyaLaialy (2).pptx
 
Unsupervised Feature Learning
Unsupervised Feature LearningUnsupervised Feature Learning
Unsupervised Feature Learning
 
Handwritten Digit Recognition using Convolutional Neural Networks
Handwritten Digit Recognition using Convolutional Neural  NetworksHandwritten Digit Recognition using Convolutional Neural  Networks
Handwritten Digit Recognition using Convolutional Neural Networks
 
09 mikoski pv-mismatch_pvpmc-8_20170509_r5
09 mikoski pv-mismatch_pvpmc-8_20170509_r509 mikoski pv-mismatch_pvpmc-8_20170509_r5
09 mikoski pv-mismatch_pvpmc-8_20170509_r5
 
Simulation of Single and Multilayer of Artificial Neural Network using Verilog
Simulation of Single and Multilayer of Artificial Neural Network using VerilogSimulation of Single and Multilayer of Artificial Neural Network using Verilog
Simulation of Single and Multilayer of Artificial Neural Network using Verilog
 
CS6270 Virtual Machines - Java Virtual Machine Architecture and APIs
CS6270 Virtual Machines - Java Virtual Machine Architecture and APIsCS6270 Virtual Machines - Java Virtual Machine Architecture and APIs
CS6270 Virtual Machines - Java Virtual Machine Architecture and APIs
 
Explicit Density Models
Explicit Density ModelsExplicit Density Models
Explicit Density Models
 
AILABS - Lecture Series - Is AI the New Electricity? Topic:- Classification a...
AILABS - Lecture Series - Is AI the New Electricity? Topic:- Classification a...AILABS - Lecture Series - Is AI the New Electricity? Topic:- Classification a...
AILABS - Lecture Series - Is AI the New Electricity? Topic:- Classification a...
 
Convolutional Neural Networks - Xavier Giro - UPC TelecomBCN Barcelona 2020
Convolutional Neural Networks - Xavier Giro - UPC TelecomBCN Barcelona 2020Convolutional Neural Networks - Xavier Giro - UPC TelecomBCN Barcelona 2020
Convolutional Neural Networks - Xavier Giro - UPC TelecomBCN Barcelona 2020
 
Introduction To Machine Learning and Neural Networks
Introduction To Machine Learning and Neural NetworksIntroduction To Machine Learning and Neural Networks
Introduction To Machine Learning and Neural Networks
 
Chainer OpenPOWER developer congress HandsON 20170522_ota
Chainer OpenPOWER developer congress HandsON 20170522_otaChainer OpenPOWER developer congress HandsON 20170522_ota
Chainer OpenPOWER developer congress HandsON 20170522_ota
 

Recently uploaded

COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptxJIT KUMAR GUPTA
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdfKamal Acharya
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stageAbc194748
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwaitjaanualu31
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Servicemeghakumariji156
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projectssmsksolar
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxSCMS School of Architecture
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxmaisarahman1
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsvanyagupta248
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdfKamal Acharya
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdfKamal Acharya
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTbhaskargani46
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"mphochane1998
 

Recently uploaded (20)

COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
School management system project Report.pdf
School management system project Report.pdfSchool management system project Report.pdf
School management system project Report.pdf
 
Air Compressor reciprocating single stage
Air Compressor reciprocating single stageAir Compressor reciprocating single stage
Air Compressor reciprocating single stage
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best ServiceTamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
Tamil Call Girls Bhayandar WhatsApp +91-9930687706, Best Service
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptxS1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
S1S2 B.Arch MGU - HOA1&2 Module 3 -Temple Architecture of Kerala.pptx
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
AIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech studentsAIRCANVAS[1].pdf mini project for btech students
AIRCANVAS[1].pdf mini project for btech students
 
Online electricity billing project report..pdf
Online electricity billing project report..pdfOnline electricity billing project report..pdf
Online electricity billing project report..pdf
 
Hostel management system project report..pdf
Hostel management system project report..pdfHostel management system project report..pdf
Hostel management system project report..pdf
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 

Introduction to Artificial Neural Networks - PART IV.pdf

  • 1. AN INTRODUCTION TO ARTIFICIAL NEURAL NETWORKS PART - IV Dr.S.SASIKALA Department of ECE Kumaraguru College of Technology Coimbatore Department of Electronics and Communication Engineering Since 1986 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All 1
  • 2. SHALLOW NEURAL NETWORK MODELS August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All 2
  • 3. Shallow Neural Networks • A neural network with one hidden layer is considered a shallow neural network whereas a network with many hidden layers and a large number of neurons in each layer is considered a deep neural network. • A “shallow” neural network has only three layers of neurons: ➢An input layer that accepts the independent variables or inputs of the model ➢One hidden layer ➢An output layer that generates predictions August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All 3
  • 4. Shallow Machine Learning • The features extraction in Shallow Machine Learning is a manual process that requires domain knowledge of the data that we are learning from. • In other words, "Shallow Learning" is a type of machine learning where we learn from data described by pre-defined features. August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All 4
  • 5. Shallow Neural Networks • Multilayer Perceptron Network (MLPN) • Radial Basis Function Network (RBFN) August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All 5
  • 6. MULTI-LAYER PERCEPTRON (MLP) August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All 6
  • 7. We will introduce the MLP and the backpropagation algorithm which is used to train it MLP used to describe any general feedforward (no recurrent connections) network However, we will concentrate on nets with units arranged in layers x1 xn 7 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 8. Different books refer to the above as either 4 layer (no. of layers of neurons) or 3 layer (no. of layers of adaptive weights). We will follow the latter convention 1st question: what do the extra layers gain you? Start with looking at what a single layer can’t do x1 xn 8 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 9. Perceptron Learning Theorem • Recap: A perceptron (threshold unit) can learn anything that it can represent (i.e. anything separable with a hyperplane) 9 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 10. The Exclusive OR problem A Perceptron cannot represent Exclusive OR since it is not linearly separable. 10 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 11. 11 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 12. Minsky & Papert (1969) offered solution to XOR problem by combining perceptron unit responses using a second layer of Units. Piecewise linear classification using an MLP with threshold (perceptron) units 1 2 +1 +1 3 12 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 13. xn x1 x2 Input Output Three-layer networks Hidden layers 13 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 14. Properties of architecture • No connections within a layer y f w x b i ij j i j m = +  = ( ) 1 Each unit is a perceptron 14 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 15. Properties of architecture • No connections within a layer • No direct connections between input and output layers • y f w x b i ij j i j m = +  = ( ) 1 Each unit is a perceptron 15 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 16. Properties of architecture • No connections within a layer • No direct connections between input and output layers • Fully connected between layers • y f w x b i ij j i j m = +  = ( ) 1 Each unit is a perceptron 16 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 17. Properties of architecture • No connections within a layer • No direct connections between input and output layers • Fully connected between layers • Often more than 3 layers • Number of output units need not equal number of input units • Number of hidden units per layer can be more or less than input or output units y f w x b i ij j i j m = +  = ( ) 1 Each unit is a perceptron Often include bias as an extra weight 17 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 18. What do each of the layers do? 1st layer draws linear boundaries 2nd layer combines the boundaries 3rd layer can generate arbitrarily complex boundaries 18 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 19. Backward pass phase: computes ‘error signal’, propagates the error backwards through network starting at output units (where the error is the difference between actual and desired output values) Forward pass phase: computes ‘functional signal’, feed forward propagation of input pattern signals through network Backpropagation Learning Algorithm ‘BP’ Solution to credit assignment problem in MLP. Rumelhart, Hinton and Williams (1986) (though actually invented earlier in a PhD thesis relating to economics) BP has two phases: 19 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 20. Conceptually: Forward Activity - Backward Error 20 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 21. Conceptually: Forward Activity - Backward Error 21 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 22. MLP – with Single Hidden Layer 22 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All https://www.cse.unsw.edu.au/~cs9417ml/MLP2/BackPropagation.html https://mattmazur.com/2015/03/17/a-step-by-step-backpropagation-example/
  • 23. Forward Propagation of Activity • Step 1: Initialize weights at random, choose a learning rate η • Until network is trained: • For each training example i.e. input pattern and target output(s): • Step 2: Do forward pass through net (with fixed weights) to produce output(s) – i.e., in Forward Direction, layer by layer: • Inputs applied • Multiplied by weights • Summed • Squashed by sigmoid activation function • Output passed to each neuron in next layer – Repeat above until network output(s) produced 23 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 24. Step 3. Back-propagation of error • Compute error (delta or local gradient) for each output unit δ k • Layer-by-layer, compute error (delta or local gradient) for each hidden unit δ j by backpropagating errors (as shown previously) Step 4: Next, update all the weights Δwij By gradient descent, and go back to Step 2 − The overall MLP learning algorithm, involving forward pass and backpropagation of error (until the network training completion), is known as the Generalised Delta Rule (GDR), or more commonly, the Back Propagation (BP) algorithm 24 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 25. Back Propagation Algorithm Summary 25 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 26. MLP/BP: A worked example 26 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 27. Worked example: Forward Pass 27 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 28. Worked example: Forward Pass 28 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 29. Worked example: Backward Pass 29 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 30. Worked example: Update Weights Using Generalized Delta Rule (BP) 30 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 31. Similarly for the all weights wij: 31 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 32. Verification that it works 32 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 33. Training • This was a single iteration of back-prop • Training requires many iterations with many training examples or epochs (one epoch is entire presentation of complete training set) • It can be slow ! • Note that computation in MLP is local (with respect to each neuron) • Parallel computation implementation is also possible 33 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 34. Training and testing data • How many examples ? – The more the merrier ! • Disjoint training and testing data sets – learn from training data but evaluate performance (generalization ability) on unseen test data • Aim: minimize error on test data 34 August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All
  • 35. August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All 35
  • 36. August 27, 2022 IEEE EAB & IEEE MAS Sponsored TryEngineering Workshop on Artificial Intelligence for All 36