SlideShare a Scribd company logo
1 of 16
PERCEPTRONS
By
k. Sivapriya
I.Msc(IT)
ITEMS
 Introduction
 The XOR problem
 Perceptrons
 Single layer perceptrons
 Multi layer perceptrons
INTRODUCTION
 This is the first in a series of posts exploring
artificial neural network implementations. The
purpose of the article is to help the reader to gain
an intuition of the basic concepts prior to moving on
to the algorithmic implementations that will follow.
 No prior knowledge is assumed although in the
interests of brevity not all of the terminology
explained in the article. Instead hyperlinks are
provided to Wikipedia and other sources where
additional reading may be required.
CONT…
 This is a big topic. ANNs have a wide variety of
applications and can be used for supervised,
unsupervised, semi-supervised and reinforcement
learning. That’s before you get into problem specific
architectures within those categories. But we have
to start somewhere so in order to narrow the scope
we’ll begin with the application of ANNs to a simple
problem.
THE XOR PROBLEM
 The XOR or exclusive or problem is a classic
problem in ANN research. It is the problem of using
a neural network to predict the outputs of XOR
function should return a true value if the two inputs
are not equal and a false value if they are equal. All
possible inputs and predicted outputs
CONT…
INPUT 1 INPUT 2 OUTPUT
0 0 0
0 1 1
1 1 0
1 0 1
Xor is a classification problem and one for
which the expected outputs are known in
advance. It is therefore appropriate to use
a supervised learning approach
PERCEPTORNS
 All ANNs the perceptrons is composed o a network
of units which are analogous to biological neurons.
A unit can receive an input from other units. On
doing so it takes the sum of all values received and
decides whether it is going to forward a signal on to
other units to which it is connected. This is called
activation. The activation function uses some
means or other to reduce the sum of as a bias unit
always activates typically sending a hard coded 1 to
all units to which it is connected.
SINGLE LAYER PERCEPTRONS
 Perceptrons include a single layer of inputs units
including one bias unit and a single output unit. Here a
bias unit is depicted by a dashed circle, while other units
are shown as blue circles. There are two non bias inputs
units representing the two binary input values for Xor.
Any number of input units can be included. X2
X1 OUTPUT
1
W2
W1
W0
CONT…
 The perceptrons is a type of feed forward network
which means the process of generating an output
known as forward propagation flows in one
direction from the input layer to the output layer.
There are no connections between units in the input
;auer. Instead all units in the input layer . Instead all
units in the input layer are connected directly to the
output unit.
CONT…
 A simplified explanation of the forward propagation
process is that the input values X1 and X2 along
with the bias value of 1, are multiplied but their
respective weights W0..W2 and parsed to the
output unit. The output unit takes the sum of those
values and employs an activation function typically
the Heaviside step function to convert the resulting
value to a 0 or 1 thus classifying the input values as
0 or 1.
CONT…
 It is the setting of the weight variables that gives the
networks author control over the process of
converting input values to an output value. It is the
weight that determine where the classification line
the line that separates data points into classification
groups is drawn. If all data points on one side of a
classification line are assigned the class of 0 all
other are classified as1.
MULTI LAYER PERCEPTRONS
 The solution to this problem is to expand beyond the
single layer architecture by adding an additional layer of
units without any direct access to the outside world
known as a hidden layer. This kind of architecture is
another feed forward network known as a multilayer
perceptrons.
W11 OUTPUT
W10
W05
W04
W03
W02
W01
W00
W12
CONT…
 Similar weights the classic perceptrons forward
propagation begins with the input value and bias
unit from the input layer being multiplied but their
respective weights however in the case there is a
weight for each combination of input and hidden
unit. The products ;of the input layer values and
their respective weights are parsed as input to the
non bias units in the hidden layer.
CONT…
 Each non bias hidden unit invokes an activation
function usually the classic sigmoid function in the
case of the Xor problem to quash the sum of their
input values down to a value that falls between and
1. the outputs of each hidden layer unit including
the bias unit are then multiplied by another set of
respective weights and parsed to an output unit.
The output unit also parses the sum ;of it input
values through an activation function again the
sigmoid function is appropriate here to return an
output value falling between 0 and 1. this is the
predicted output.
CONCLUSION
 In this post the classic ANN Xor problem was
explored. The problem itself was described in
detail, along with the fact that he inputs for Xor are
not linearly separable into their correct classification
categories. A non linear solution involving an MLP
architecture was explored at a high level along with
the forward propagation algorithm used to generate
an output value from the network and the back
propagation algorithm, which is used to train the
network.
THANK YOU

More Related Content

What's hot

Nural network ER. Abhishek k. upadhyay
Nural network ER. Abhishek  k. upadhyayNural network ER. Abhishek  k. upadhyay
Nural network ER. Abhishek k. upadhyayabhishek upadhyay
 
Mathematical Foundation of Discrete time Hopfield Networks
Mathematical Foundation of Discrete time Hopfield NetworksMathematical Foundation of Discrete time Hopfield Networks
Mathematical Foundation of Discrete time Hopfield NetworksAkhil Upadhyay
 
nural network ER. Abhishek k. upadhyay
nural network ER. Abhishek  k. upadhyaynural network ER. Abhishek  k. upadhyay
nural network ER. Abhishek k. upadhyayabhishek upadhyay
 
Recurrent neural networks rnn
Recurrent neural networks   rnnRecurrent neural networks   rnn
Recurrent neural networks rnnKuppusamy P
 
Nural network ER.Abhishek k. upadhyay
Nural network  ER.Abhishek k. upadhyayNural network  ER.Abhishek k. upadhyay
Nural network ER.Abhishek k. upadhyayabhishek upadhyay
 
Introduction to Artificial Neural Networks
Introduction to Artificial Neural NetworksIntroduction to Artificial Neural Networks
Introduction to Artificial Neural NetworksStratio
 
Perceptron algorithm
Perceptron algorithmPerceptron algorithm
Perceptron algorithmZul Kawsar
 
Adaline madaline
Adaline madalineAdaline madaline
Adaline madalineNagarajan
 
Neural Network
Neural NetworkNeural Network
Neural Networksamisounda
 
Hebbian Learning
Hebbian LearningHebbian Learning
Hebbian LearningESCOM
 
Fundamental, An Introduction to Neural Networks
Fundamental, An Introduction to Neural NetworksFundamental, An Introduction to Neural Networks
Fundamental, An Introduction to Neural NetworksNelson Piedra
 
Back propagation network
Back propagation networkBack propagation network
Back propagation networkHIRA Zaidi
 

What's hot (20)

Perceptron
PerceptronPerceptron
Perceptron
 
Nural network ER. Abhishek k. upadhyay
Nural network ER. Abhishek  k. upadhyayNural network ER. Abhishek  k. upadhyay
Nural network ER. Abhishek k. upadhyay
 
Mathematical Foundation of Discrete time Hopfield Networks
Mathematical Foundation of Discrete time Hopfield NetworksMathematical Foundation of Discrete time Hopfield Networks
Mathematical Foundation of Discrete time Hopfield Networks
 
nural network ER. Abhishek k. upadhyay
nural network ER. Abhishek  k. upadhyaynural network ER. Abhishek  k. upadhyay
nural network ER. Abhishek k. upadhyay
 
Max net
Max netMax net
Max net
 
Recurrent neural networks rnn
Recurrent neural networks   rnnRecurrent neural networks   rnn
Recurrent neural networks rnn
 
MNN
MNNMNN
MNN
 
Artifical Neural Network
Artifical Neural NetworkArtifical Neural Network
Artifical Neural Network
 
Nural network ER.Abhishek k. upadhyay
Nural network  ER.Abhishek k. upadhyayNural network  ER.Abhishek k. upadhyay
Nural network ER.Abhishek k. upadhyay
 
03 Single layer Perception Classifier
03 Single layer Perception Classifier03 Single layer Perception Classifier
03 Single layer Perception Classifier
 
Introduction to Artificial Neural Networks
Introduction to Artificial Neural NetworksIntroduction to Artificial Neural Networks
Introduction to Artificial Neural Networks
 
Perceptron algorithm
Perceptron algorithmPerceptron algorithm
Perceptron algorithm
 
Adaline madaline
Adaline madalineAdaline madaline
Adaline madaline
 
071bct537 lab4
071bct537 lab4071bct537 lab4
071bct537 lab4
 
Neural Network
Neural NetworkNeural Network
Neural Network
 
04 Multi-layer Feedforward Networks
04 Multi-layer Feedforward Networks04 Multi-layer Feedforward Networks
04 Multi-layer Feedforward Networks
 
Hebbian Learning
Hebbian LearningHebbian Learning
Hebbian Learning
 
Fundamental, An Introduction to Neural Networks
Fundamental, An Introduction to Neural NetworksFundamental, An Introduction to Neural Networks
Fundamental, An Introduction to Neural Networks
 
Perceptron
PerceptronPerceptron
Perceptron
 
Back propagation network
Back propagation networkBack propagation network
Back propagation network
 

Similar to Perceptrons

20200428135045cfbc718e2c.pdf
20200428135045cfbc718e2c.pdf20200428135045cfbc718e2c.pdf
20200428135045cfbc718e2c.pdfTitleTube
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)EdutechLearners
 
Perceptron Study Material with XOR example
Perceptron Study Material with XOR examplePerceptron Study Material with XOR example
Perceptron Study Material with XOR exampleGSURESHKUMAR11
 
ANNs have been widely used in various domains for: Pattern recognition Funct...
ANNs have been widely used in various domains for: Pattern recognition  Funct...ANNs have been widely used in various domains for: Pattern recognition  Funct...
ANNs have been widely used in various domains for: Pattern recognition Funct...vijaym148
 
Counter propagation Network
Counter propagation NetworkCounter propagation Network
Counter propagation NetworkAkshay Dhole
 
A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...
A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...
A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...iosrjce
 
Machine learning certification in gurgaon
Machine learning certification in gurgaon Machine learning certification in gurgaon
Machine learning certification in gurgaon TejaspathiLV
 
Data science training ang placements
Data science training ang placementsData science training ang placements
Data science training ang placementsbhuvan8999
 
data science course
data science coursedata science course
data science coursemarketer1234
 
machine learning training in bangalore
machine learning training in bangalore machine learning training in bangalore
machine learning training in bangalore kalojambhu
 
data science course in pune
data science course in punedata science course in pune
data science course in punemarketer1234
 
Data science certification in mumbai
Data science certification in mumbaiData science certification in mumbai
Data science certification in mumbaiprathyusha1234
 
Data science training in mumbai
Data science training in mumbaiData science training in mumbai
Data science training in mumbaisushmapetloju
 
Data science courses in bangalore
Data science courses in bangaloreData science courses in bangalore
Data science courses in bangaloreprathyusha1234
 

Similar to Perceptrons (20)

20200428135045cfbc718e2c.pdf
20200428135045cfbc718e2c.pdf20200428135045cfbc718e2c.pdf
20200428135045cfbc718e2c.pdf
 
Multi Layer Network
Multi Layer NetworkMulti Layer Network
Multi Layer Network
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
 
Perceptron Study Material with XOR example
Perceptron Study Material with XOR examplePerceptron Study Material with XOR example
Perceptron Study Material with XOR example
 
20120140503023
2012014050302320120140503023
20120140503023
 
ANNs have been widely used in various domains for: Pattern recognition Funct...
ANNs have been widely used in various domains for: Pattern recognition  Funct...ANNs have been widely used in various domains for: Pattern recognition  Funct...
ANNs have been widely used in various domains for: Pattern recognition Funct...
 
ai7.ppt
ai7.pptai7.ppt
ai7.ppt
 
ai7.ppt
ai7.pptai7.ppt
ai7.ppt
 
Counter propagation Network
Counter propagation NetworkCounter propagation Network
Counter propagation Network
 
H017376369
H017376369H017376369
H017376369
 
A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...
A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...
A New Classifier Based onRecurrent Neural Network Using Multiple Binary-Outpu...
 
Machine learning certification in gurgaon
Machine learning certification in gurgaon Machine learning certification in gurgaon
Machine learning certification in gurgaon
 
Data science training ang placements
Data science training ang placementsData science training ang placements
Data science training ang placements
 
data science course
data science coursedata science course
data science course
 
machine learning training in bangalore
machine learning training in bangalore machine learning training in bangalore
machine learning training in bangalore
 
data science course in pune
data science course in punedata science course in pune
data science course in pune
 
Data science certification in mumbai
Data science certification in mumbaiData science certification in mumbai
Data science certification in mumbai
 
Data science training in mumbai
Data science training in mumbaiData science training in mumbai
Data science training in mumbai
 
Data science courses in bangalore
Data science courses in bangaloreData science courses in bangalore
Data science courses in bangalore
 
Data science course
Data science courseData science course
Data science course
 

More from rajshreemuthiah (20)

oracle
oracleoracle
oracle
 
quality
qualityquality
quality
 
bigdata
bigdatabigdata
bigdata
 
polymorphism
polymorphismpolymorphism
polymorphism
 
solutions and understanding text analytics
solutions and understanding text analyticssolutions and understanding text analytics
solutions and understanding text analytics
 
interface
interfaceinterface
interface
 
Testing &ampdebugging
Testing &ampdebuggingTesting &ampdebugging
Testing &ampdebugging
 
concurrency control
concurrency controlconcurrency control
concurrency control
 
Education
EducationEducation
Education
 
Formal verification
Formal verificationFormal verification
Formal verification
 
Transaction management
Transaction management Transaction management
Transaction management
 
Multi thread
Multi threadMulti thread
Multi thread
 
System testing
System testingSystem testing
System testing
 
software maintenance
software maintenancesoftware maintenance
software maintenance
 
exception handling
exception handlingexception handling
exception handling
 
e governance
e governancee governance
e governance
 
recovery management
recovery managementrecovery management
recovery management
 
Implementing polymorphism
Implementing polymorphismImplementing polymorphism
Implementing polymorphism
 
Buffer managements
Buffer managementsBuffer managements
Buffer managements
 
os linux
os linuxos linux
os linux
 

Recently uploaded

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?XfilesPro
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonetsnaman860154
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraDeakin University
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetEnjoy Anytime
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 

Recently uploaded (20)

Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping ElbowsPigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?How to Remove Document Management Hurdles with X-Docs?
How to Remove Document Management Hurdles with X-Docs?
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Artificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning eraArtificial intelligence in the post-deep learning era
Artificial intelligence in the post-deep learning era
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your BudgetHyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
Hyderabad Call Girls Khairatabad ✨ 7001305949 ✨ Cheap Price Your Budget
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 

Perceptrons

  • 2. ITEMS  Introduction  The XOR problem  Perceptrons  Single layer perceptrons  Multi layer perceptrons
  • 3. INTRODUCTION  This is the first in a series of posts exploring artificial neural network implementations. The purpose of the article is to help the reader to gain an intuition of the basic concepts prior to moving on to the algorithmic implementations that will follow.  No prior knowledge is assumed although in the interests of brevity not all of the terminology explained in the article. Instead hyperlinks are provided to Wikipedia and other sources where additional reading may be required.
  • 4. CONT…  This is a big topic. ANNs have a wide variety of applications and can be used for supervised, unsupervised, semi-supervised and reinforcement learning. That’s before you get into problem specific architectures within those categories. But we have to start somewhere so in order to narrow the scope we’ll begin with the application of ANNs to a simple problem.
  • 5. THE XOR PROBLEM  The XOR or exclusive or problem is a classic problem in ANN research. It is the problem of using a neural network to predict the outputs of XOR function should return a true value if the two inputs are not equal and a false value if they are equal. All possible inputs and predicted outputs
  • 6. CONT… INPUT 1 INPUT 2 OUTPUT 0 0 0 0 1 1 1 1 0 1 0 1 Xor is a classification problem and one for which the expected outputs are known in advance. It is therefore appropriate to use a supervised learning approach
  • 7. PERCEPTORNS  All ANNs the perceptrons is composed o a network of units which are analogous to biological neurons. A unit can receive an input from other units. On doing so it takes the sum of all values received and decides whether it is going to forward a signal on to other units to which it is connected. This is called activation. The activation function uses some means or other to reduce the sum of as a bias unit always activates typically sending a hard coded 1 to all units to which it is connected.
  • 8. SINGLE LAYER PERCEPTRONS  Perceptrons include a single layer of inputs units including one bias unit and a single output unit. Here a bias unit is depicted by a dashed circle, while other units are shown as blue circles. There are two non bias inputs units representing the two binary input values for Xor. Any number of input units can be included. X2 X1 OUTPUT 1 W2 W1 W0
  • 9. CONT…  The perceptrons is a type of feed forward network which means the process of generating an output known as forward propagation flows in one direction from the input layer to the output layer. There are no connections between units in the input ;auer. Instead all units in the input layer . Instead all units in the input layer are connected directly to the output unit.
  • 10. CONT…  A simplified explanation of the forward propagation process is that the input values X1 and X2 along with the bias value of 1, are multiplied but their respective weights W0..W2 and parsed to the output unit. The output unit takes the sum of those values and employs an activation function typically the Heaviside step function to convert the resulting value to a 0 or 1 thus classifying the input values as 0 or 1.
  • 11. CONT…  It is the setting of the weight variables that gives the networks author control over the process of converting input values to an output value. It is the weight that determine where the classification line the line that separates data points into classification groups is drawn. If all data points on one side of a classification line are assigned the class of 0 all other are classified as1.
  • 12. MULTI LAYER PERCEPTRONS  The solution to this problem is to expand beyond the single layer architecture by adding an additional layer of units without any direct access to the outside world known as a hidden layer. This kind of architecture is another feed forward network known as a multilayer perceptrons. W11 OUTPUT W10 W05 W04 W03 W02 W01 W00 W12
  • 13. CONT…  Similar weights the classic perceptrons forward propagation begins with the input value and bias unit from the input layer being multiplied but their respective weights however in the case there is a weight for each combination of input and hidden unit. The products ;of the input layer values and their respective weights are parsed as input to the non bias units in the hidden layer.
  • 14. CONT…  Each non bias hidden unit invokes an activation function usually the classic sigmoid function in the case of the Xor problem to quash the sum of their input values down to a value that falls between and 1. the outputs of each hidden layer unit including the bias unit are then multiplied by another set of respective weights and parsed to an output unit. The output unit also parses the sum ;of it input values through an activation function again the sigmoid function is appropriate here to return an output value falling between 0 and 1. this is the predicted output.
  • 15. CONCLUSION  In this post the classic ANN Xor problem was explored. The problem itself was described in detail, along with the fact that he inputs for Xor are not linearly separable into their correct classification categories. A non linear solution involving an MLP architecture was explored at a high level along with the forward propagation algorithm used to generate an output value from the network and the back propagation algorithm, which is used to train the network.