SlideShare ist ein Scribd-Unternehmen logo
1 von 32
KANCHANA RANI G
MTECH R2
ROLL No: 08
Hopfield Nets
ď‚— Hopfield has developed a number of neural networks based on
fixed weights and adaptive activations.
ď‚— These nets can serve as associative memory nets and can be used
to solve constraint satisfaction problems such as the "Travelling
Salesman Problem.“
ď‚— Two types:
ď‚— Discrete Hopfield Net
ď‚— Continuous Hopfield Net
Discrete Hopfield Net
ď‚— The net is a fully interconnected neural net, in the sense that each
unit is connected to every other unit.
ď‚— The net has symmetric weights with no self-connections, i.e.,
and
ď‚— Hopfield net differ from iterative auto associative net
in 2 things.
1. Only one unit updates its activation at a
time (based on the signal it receives from each other
unit)
2. Each unit continues to receive an external
signal in addition to the signal from the other units in
the net.
ď‚— The asynchronous updating of the units allows a function, known
as an energy function, to be found for the net.
ď‚— The existence of such a function enables us to prove that the net
will converge to a stable set of activations, rather than oscillating.
ď‚— The original formulation of the discrete Hopfield net showed the
usefulness of the net as content-addressable memory.
Architecture
Algorithm
There are several versions of the discrete Hopfield net.
ď‚— Binary Input Vectors
To store a set of binary patterns s ( p ) ,
p = 1 , . . . , P, where
))().....().....(()( 1 pspspsps ni
ď‚— The weight matrix W = is given by
and
}{ ijw
]12][12[ )()( pj
p
piij ssw for ji
.0iiw
ď‚— Bipolar Inputs
To store a set of binary patterns s ( p ) ,
p = 1 , . . . , P, where
The weight matrix W = is given by,
for
and
))().....().....(()( 1 pspspsps ni
}{ ijw
)()( pj
p
piij ssw ji
0iiw
ď‚— Application algorithm is stated for binary patterns.
ď‚— The activation functions can be modified easily to accommodate
bipolar patterns.
Application Algorithm for the Discrete Hopfield Net
Step 0. Initialize weights to store patterns.
(Use Hebb rule.)
While activations of the net are not converged, do Steps 1-7.
Step 1. For each input vector x, do Steps 2-6.
Step 2. Set initial activations of net equal to the
external input vector x:
, ( i=1,2…n)
Step 3. Do Steps 4-6 for each unit
(Units should be updated in random order.)
Step 4. Compute net input:
ii xy
iY
j
jijii wyxiny _
Step 5. Determine activation (output signal):
Step 6. Broadcast the value of to all other
units.
(This updates the activation vector.)
Step 7. Test for convergence.
ď‚— The threshold, is usually taken to be zero.
ď‚— The order of update of the units is random, but each unit must be
updated at the same average rate.
iy
i
Applications
ď‚— A binary Hopfield net can be used to determine whether an input
vector is a "known” or an "unknown" vector.
ď‚— The net recognizes a "known" vector by producing a pattern of
activation on the units of the net that is the same as the vector
stored in the net.
ď‚— If the input vector is an "unknown" vector, the activation vectors
produced as the net iterates will converge to an activation vector
that is not one of the stored patterns.
Example
ď‚— Consider an Example in which the vector (1, 1, 1,0) (or its bipolar
equivalent (1, 1, 1, - 1)) was stored in a net. The binary input vector
corresponding to the input vector used (with mistakes in the first
and second components) is (0, 0, 1, 0). Although the Hopfield net
uses binary vectors, the weight matrix is bipolar. The units update
their activations in a random order. For this example the update
order is 2341 yyyy
ď‚— Step 0. Initialize weights to store patterns:
ď‚— Step 1. The input vector is x = (0, 0, 1, 0). For this vector,
Step 2. y = (0, 0, 1, 0).
Step 3. Choose unit to update its activation:
step 4.
step 5.
step 6. y=(1,0,1,0).
iY
j
jj wyxiny 10_ 111
10_ 11 yiny
Step 3. Choose unit to update its activation:
step 4.
step 5.
step 6. y=(1,0,1,0).
step 3. Choose unit to update its activation:
step 4.
step 5.
Step 6. y=(1,0,1,0).
4y
j
jjwyxiny )2(0444
00 44 yiny
.11333
j
jjwyxiny
10 33 yiny
3y
step 3. Choose unit to update its activation:
step 4.
step 5.
step 6. y=(1,1,1,0)
Step 7. Test for convergence.
2y
20_ 222
j
jj wyxiny
10_ 22 yiny
Analysis
Energy Function.
ď‚— An energy function is a function that is bounded below and is a
non increasing function of the state of the system.
ď‚— For a neural net, the state of the system is the vector of activations
of the units.
ď‚— Thus, if an energy function can be found for an iterative neural
net, the net will converge to a stable set of activations.
ď‚— Energy function for the discrete Hopfield net is given by,
ď‚— If the activation of the net changes by an amount , the
energy changes by an amount,
iy
ď‚— consider the two cases in which a change will occur in
the activation of neuron
ď‚— If is positive, it will change to zero if,
This gives a negative change for In this case,
ď‚— If is zero, it will change to positive if,
This gives a negative change for In this case,
iy
iy
iy
j
ijiji wyx
iy .0E
iy
j
ijiji wyx
iy .0E
Storage Capacity.
ď‚— Hopfield found experimentally that the number of binary patterns
that can be stored and recalled in a net with reasonable accuracy,
is given approximately by,
n= The number of neurons in the net.
Continuous Hopfield Net
ď‚— A modification of the discrete Hopfield net with continuous-
valued output functions, can be used either for associative
memory problems or constrained optimization problems such as
the travelling salesman problem.
ď‚— Here, denote the internal activity of a neuron.
ď‚— Output signal is
iu
).( ii ugv
ď‚— If we define an energy function,
ď‚— Then the net will converge to a stable configuration that is a
minimum of the energy function as long as,
ď‚— For this form of the energy function, the net will converge if the
activity of each neuron changes with time according to the
differential equation
ď‚— In the original presentation of the continuous Hopfield net the
energy function is,
where „T‟ is the time constant.
ď‚— If the activity of each neuron changes with time according to the
differential equation
the net will converge.
ď‚— In the Hopfield-Tank solution of the travelling salesman problem,
each unit has two indices.
ď‚— The first index--x, y, etc. denotes the city, the second-i,j, etc.-the
position in the tour.
ď‚— The Hopfield-Tank energy function for the travelling salesman
problem is,
ď‚— The differential equation for the activity of unit UX,I is,
ď‚— The output signal is given by applying the sigmoid function (with
range between 0 and 1), which Hopfield and Tank expressed as
Architecture
ď‚— The units used to solve the 10-city travelling salesman
problem are arranged as,
ď‚— There is a contribution to the energy if two units in the same row
are "on."More explicitly, the weights between units Uxi and Uyj
are,
ď‚— Where is Dirac delta, which is 1 if i = j and 0 otherwise. In
addition, each unit receives an external input signal.
The parameter N is usually taken to be somewhat larger than the
number of cities, n.
Algorithm
Application
ď‚— Hopfield and Tank used the following parameter values in their solution
of the problem:
A = B = 500, C = 200, D = 500, N = 15, = 50.
ď‚— Hopfield and Tank claimed a high rate of success in finding valid tours; they
found 16 from 20 starting configurations. Approximately half of the trials
produced one of the two shortest paths. The best tour found was
A D E F G H I J B C
with length 2.71
Best tour for travelling salesman problem found by Hopfield and Tank
Hopfield Networks

Weitere ähnliche Inhalte

Was ist angesagt?

Regularization in deep learning
Regularization in deep learningRegularization in deep learning
Regularization in deep learningKien Le
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)EdutechLearners
 
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron ClassifiersArtificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron ClassifiersMohammed Bennamoun
 
Perceptron
PerceptronPerceptron
PerceptronNagarajan
 
Soft computing
Soft computingSoft computing
Soft computingganeshpaul6
 
Neural Networks: Multilayer Perceptron
Neural Networks: Multilayer PerceptronNeural Networks: Multilayer Perceptron
Neural Networks: Multilayer PerceptronMostafa G. M. Mostafa
 
Adaptive Resonance Theory
Adaptive Resonance TheoryAdaptive Resonance Theory
Adaptive Resonance TheoryNaveen Kumar
 
Introduction to CNN
Introduction to CNNIntroduction to CNN
Introduction to CNNShuai Zhang
 
Artificial Neural Networks - ANN
Artificial Neural Networks - ANNArtificial Neural Networks - ANN
Artificial Neural Networks - ANNMohamed Talaat
 
Introduction Of Artificial neural network
Introduction Of Artificial neural networkIntroduction Of Artificial neural network
Introduction Of Artificial neural networkNagarajan
 
Convolutional Neural Network and Its Applications
Convolutional Neural Network and Its ApplicationsConvolutional Neural Network and Its Applications
Convolutional Neural Network and Its ApplicationsKasun Chinthaka Piyarathna
 
Deep neural networks
Deep neural networksDeep neural networks
Deep neural networksSi Haem
 
Kohonen self organizing maps
Kohonen self organizing mapsKohonen self organizing maps
Kohonen self organizing mapsraphaelkiminya
 
Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Suraj Aavula
 
Activation functions
Activation functionsActivation functions
Activation functionsPRATEEK SAHU
 

Was ist angesagt? (20)

Regularization in deep learning
Regularization in deep learningRegularization in deep learning
Regularization in deep learning
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
 
Artificial Neural Network Topology
Artificial Neural Network TopologyArtificial Neural Network Topology
Artificial Neural Network Topology
 
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron ClassifiersArtificial Neural Network Lect4 : Single Layer Perceptron Classifiers
Artificial Neural Network Lect4 : Single Layer Perceptron Classifiers
 
Perceptron
PerceptronPerceptron
Perceptron
 
Soft computing
Soft computingSoft computing
Soft computing
 
Neural Networks: Multilayer Perceptron
Neural Networks: Multilayer PerceptronNeural Networks: Multilayer Perceptron
Neural Networks: Multilayer Perceptron
 
Adaptive Resonance Theory
Adaptive Resonance TheoryAdaptive Resonance Theory
Adaptive Resonance Theory
 
Introduction to CNN
Introduction to CNNIntroduction to CNN
Introduction to CNN
 
Artificial Neural Networks - ANN
Artificial Neural Networks - ANNArtificial Neural Networks - ANN
Artificial Neural Networks - ANN
 
Hebb network
Hebb networkHebb network
Hebb network
 
Introduction Of Artificial neural network
Introduction Of Artificial neural networkIntroduction Of Artificial neural network
Introduction Of Artificial neural network
 
Anfis (1)
Anfis (1)Anfis (1)
Anfis (1)
 
Convolutional Neural Network and Its Applications
Convolutional Neural Network and Its ApplicationsConvolutional Neural Network and Its Applications
Convolutional Neural Network and Its Applications
 
Practical Swarm Optimization (PSO)
Practical Swarm Optimization (PSO)Practical Swarm Optimization (PSO)
Practical Swarm Optimization (PSO)
 
Mc culloch pitts neuron
Mc culloch pitts neuronMc culloch pitts neuron
Mc culloch pitts neuron
 
Deep neural networks
Deep neural networksDeep neural networks
Deep neural networks
 
Kohonen self organizing maps
Kohonen self organizing mapsKohonen self organizing maps
Kohonen self organizing maps
 
Convolution Neural Network (CNN)
Convolution Neural Network (CNN)Convolution Neural Network (CNN)
Convolution Neural Network (CNN)
 
Activation functions
Activation functionsActivation functions
Activation functions
 

Ă„hnlich wie Hopfield Networks

Artificial Neural Networks Lect7: Neural networks based on competition
Artificial Neural Networks Lect7: Neural networks based on competitionArtificial Neural Networks Lect7: Neural networks based on competition
Artificial Neural Networks Lect7: Neural networks based on competitionMohammed Bennamoun
 
Principles of soft computing-Associative memory networks
Principles of soft computing-Associative memory networksPrinciples of soft computing-Associative memory networks
Principles of soft computing-Associative memory networksSivagowry Shathesh
 
On The Application of Hyperbolic Activation Function in Computing the Acceler...
On The Application of Hyperbolic Activation Function in Computing the Acceler...On The Application of Hyperbolic Activation Function in Computing the Acceler...
On The Application of Hyperbolic Activation Function in Computing the Acceler...iosrjce
 
Artificial Neural Network
Artificial Neural NetworkArtificial Neural Network
Artificial Neural NetworkAtul Krishna
 
soft computing
soft computingsoft computing
soft computingAMIT KUMAR
 
Neural-Networks.ppt
Neural-Networks.pptNeural-Networks.ppt
Neural-Networks.pptRINUSATHYAN
 
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
 
Ann
Ann Ann
Ann vini89
 
Perceptron Study Material with XOR example
Perceptron Study Material with XOR examplePerceptron Study Material with XOR example
Perceptron Study Material with XOR exampleGSURESHKUMAR11
 
Echo state networks and locomotion patterns
Echo state networks and locomotion patternsEcho state networks and locomotion patterns
Echo state networks and locomotion patternsVito Strano
 
UofT_ML_lecture.pptx
UofT_ML_lecture.pptxUofT_ML_lecture.pptx
UofT_ML_lecture.pptxabcdefghijklmn19
 

Ă„hnlich wie Hopfield Networks (20)

Unit iii update
Unit iii updateUnit iii update
Unit iii update
 
neural networksNnf
neural networksNnfneural networksNnf
neural networksNnf
 
Artificial Neural Networks Lect7: Neural networks based on competition
Artificial Neural Networks Lect7: Neural networks based on competitionArtificial Neural Networks Lect7: Neural networks based on competition
Artificial Neural Networks Lect7: Neural networks based on competition
 
Multi Layer Network
Multi Layer NetworkMulti Layer Network
Multi Layer Network
 
Neural Networks
Neural NetworksNeural Networks
Neural Networks
 
Principles of soft computing-Associative memory networks
Principles of soft computing-Associative memory networksPrinciples of soft computing-Associative memory networks
Principles of soft computing-Associative memory networks
 
20120140503023
2012014050302320120140503023
20120140503023
 
CS767_Lecture_05.pptx
CS767_Lecture_05.pptxCS767_Lecture_05.pptx
CS767_Lecture_05.pptx
 
On The Application of Hyperbolic Activation Function in Computing the Acceler...
On The Application of Hyperbolic Activation Function in Computing the Acceler...On The Application of Hyperbolic Activation Function in Computing the Acceler...
On The Application of Hyperbolic Activation Function in Computing the Acceler...
 
ANN.pptx
ANN.pptxANN.pptx
ANN.pptx
 
MNN
MNNMNN
MNN
 
Artificial Neural Network
Artificial Neural NetworkArtificial Neural Network
Artificial Neural Network
 
soft computing
soft computingsoft computing
soft computing
 
Neural-Networks.ppt
Neural-Networks.pptNeural-Networks.ppt
Neural-Networks.ppt
 
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
 
Ann
Ann Ann
Ann
 
071bct537 lab4
071bct537 lab4071bct537 lab4
071bct537 lab4
 
Perceptron Study Material with XOR example
Perceptron Study Material with XOR examplePerceptron Study Material with XOR example
Perceptron Study Material with XOR example
 
Echo state networks and locomotion patterns
Echo state networks and locomotion patternsEcho state networks and locomotion patterns
Echo state networks and locomotion patterns
 
UofT_ML_lecture.pptx
UofT_ML_lecture.pptxUofT_ML_lecture.pptx
UofT_ML_lecture.pptx
 

KĂĽrzlich hochgeladen

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Celine George
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomnelietumpap1
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfTechSoup
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Mark Reed
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 

KĂĽrzlich hochgeladen (20)

call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 3 STEPS Using Odoo 17
 
Raw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptxRaw materials used in Herbal Cosmetics.pptx
Raw materials used in Herbal Cosmetics.pptx
 
ENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choomENGLISH6-Q4-W3.pptxqurter our high choom
ENGLISH6-Q4-W3.pptxqurter our high choom
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptxYOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
YOUVE GOT EMAIL_FINALS_EL_DORADO_2024.pptx
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17Field Attribute Index Feature in Odoo 17
Field Attribute Index Feature in Odoo 17
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptxYOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
YOUVE_GOT_EMAIL_PRELIMS_EL_DORADO_2024.pptx
 
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdfInclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
Inclusivity Essentials_ Creating Accessible Websites for Nonprofits .pdf
 
Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)Influencing policy (training slides from Fast Track Impact)
Influencing policy (training slides from Fast Track Impact)
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 

Hopfield Networks

  • 1. KANCHANA RANI G MTECH R2 ROLL No: 08
  • 2. Hopfield Nets ď‚— Hopfield has developed a number of neural networks based on fixed weights and adaptive activations. ď‚— These nets can serve as associative memory nets and can be used to solve constraint satisfaction problems such as the "Travelling Salesman Problem.“ ď‚— Two types: ď‚— Discrete Hopfield Net ď‚— Continuous Hopfield Net
  • 3. Discrete Hopfield Net ď‚— The net is a fully interconnected neural net, in the sense that each unit is connected to every other unit. ď‚— The net has symmetric weights with no self-connections, i.e., and
  • 4. ď‚— Hopfield net differ from iterative auto associative net in 2 things. 1. Only one unit updates its activation at a time (based on the signal it receives from each other unit) 2. Each unit continues to receive an external signal in addition to the signal from the other units in the net.
  • 5. ď‚— The asynchronous updating of the units allows a function, known as an energy function, to be found for the net. ď‚— The existence of such a function enables us to prove that the net will converge to a stable set of activations, rather than oscillating. ď‚— The original formulation of the discrete Hopfield net showed the usefulness of the net as content-addressable memory.
  • 7. Algorithm There are several versions of the discrete Hopfield net. ď‚— Binary Input Vectors To store a set of binary patterns s ( p ) , p = 1 , . . . , P, where ))().....().....(()( 1 pspspsps ni
  • 8. ď‚— The weight matrix W = is given by and }{ ijw ]12][12[ )()( pj p piij ssw for ji .0iiw
  • 9. ď‚— Bipolar Inputs To store a set of binary patterns s ( p ) , p = 1 , . . . , P, where The weight matrix W = is given by, for and ))().....().....(()( 1 pspspsps ni }{ ijw )()( pj p piij ssw ji 0iiw
  • 10. ď‚— Application algorithm is stated for binary patterns. ď‚— The activation functions can be modified easily to accommodate bipolar patterns.
  • 11. Application Algorithm for the Discrete Hopfield Net Step 0. Initialize weights to store patterns. (Use Hebb rule.) While activations of the net are not converged, do Steps 1-7. Step 1. For each input vector x, do Steps 2-6. Step 2. Set initial activations of net equal to the external input vector x: , ( i=1,2…n) Step 3. Do Steps 4-6 for each unit (Units should be updated in random order.) Step 4. Compute net input: ii xy iY j jijii wyxiny _
  • 12. Step 5. Determine activation (output signal): Step 6. Broadcast the value of to all other units. (This updates the activation vector.) Step 7. Test for convergence. ď‚— The threshold, is usually taken to be zero. ď‚— The order of update of the units is random, but each unit must be updated at the same average rate. iy i
  • 13. Applications ď‚— A binary Hopfield net can be used to determine whether an input vector is a "known” or an "unknown" vector. ď‚— The net recognizes a "known" vector by producing a pattern of activation on the units of the net that is the same as the vector stored in the net. ď‚— If the input vector is an "unknown" vector, the activation vectors produced as the net iterates will converge to an activation vector that is not one of the stored patterns.
  • 14. Example ď‚— Consider an Example in which the vector (1, 1, 1,0) (or its bipolar equivalent (1, 1, 1, - 1)) was stored in a net. The binary input vector corresponding to the input vector used (with mistakes in the first and second components) is (0, 0, 1, 0). Although the Hopfield net uses binary vectors, the weight matrix is bipolar. The units update their activations in a random order. For this example the update order is 2341 yyyy
  • 15. ď‚— Step 0. Initialize weights to store patterns: ď‚— Step 1. The input vector is x = (0, 0, 1, 0). For this vector, Step 2. y = (0, 0, 1, 0). Step 3. Choose unit to update its activation: step 4. step 5. step 6. y=(1,0,1,0). iY j jj wyxiny 10_ 111 10_ 11 yiny
  • 16. Step 3. Choose unit to update its activation: step 4. step 5. step 6. y=(1,0,1,0). step 3. Choose unit to update its activation: step 4. step 5. Step 6. y=(1,0,1,0). 4y j jjwyxiny )2(0444 00 44 yiny .11333 j jjwyxiny 10 33 yiny 3y
  • 17. step 3. Choose unit to update its activation: step 4. step 5. step 6. y=(1,1,1,0) Step 7. Test for convergence. 2y 20_ 222 j jj wyxiny 10_ 22 yiny
  • 18. Analysis Energy Function. ď‚— An energy function is a function that is bounded below and is a non increasing function of the state of the system. ď‚— For a neural net, the state of the system is the vector of activations of the units. ď‚— Thus, if an energy function can be found for an iterative neural net, the net will converge to a stable set of activations.
  • 19. ď‚— Energy function for the discrete Hopfield net is given by, ď‚— If the activation of the net changes by an amount , the energy changes by an amount, iy
  • 20. ď‚— consider the two cases in which a change will occur in the activation of neuron ď‚— If is positive, it will change to zero if, This gives a negative change for In this case, ď‚— If is zero, it will change to positive if, This gives a negative change for In this case, iy iy iy j ijiji wyx iy .0E iy j ijiji wyx iy .0E
  • 21. Storage Capacity. ď‚— Hopfield found experimentally that the number of binary patterns that can be stored and recalled in a net with reasonable accuracy, is given approximately by, n= The number of neurons in the net.
  • 22. Continuous Hopfield Net ď‚— A modification of the discrete Hopfield net with continuous- valued output functions, can be used either for associative memory problems or constrained optimization problems such as the travelling salesman problem. ď‚— Here, denote the internal activity of a neuron. ď‚— Output signal is iu ).( ii ugv
  • 23. ď‚— If we define an energy function, ď‚— Then the net will converge to a stable configuration that is a minimum of the energy function as long as, ď‚— For this form of the energy function, the net will converge if the activity of each neuron changes with time according to the differential equation
  • 24. ď‚— In the original presentation of the continuous Hopfield net the energy function is, where „T‟ is the time constant. ď‚— If the activity of each neuron changes with time according to the differential equation the net will converge.
  • 25. ď‚— In the Hopfield-Tank solution of the travelling salesman problem, each unit has two indices. ď‚— The first index--x, y, etc. denotes the city, the second-i,j, etc.-the position in the tour. ď‚— The Hopfield-Tank energy function for the travelling salesman problem is,
  • 26. ď‚— The differential equation for the activity of unit UX,I is, ď‚— The output signal is given by applying the sigmoid function (with range between 0 and 1), which Hopfield and Tank expressed as
  • 27. Architecture ď‚— The units used to solve the 10-city travelling salesman problem are arranged as,
  • 28. ď‚— There is a contribution to the energy if two units in the same row are "on."More explicitly, the weights between units Uxi and Uyj are, ď‚— Where is Dirac delta, which is 1 if i = j and 0 otherwise. In addition, each unit receives an external input signal. The parameter N is usually taken to be somewhat larger than the number of cities, n.
  • 30. Application ď‚— Hopfield and Tank used the following parameter values in their solution of the problem: A = B = 500, C = 200, D = 500, N = 15, = 50. ď‚— Hopfield and Tank claimed a high rate of success in finding valid tours; they found 16 from 20 starting configurations. Approximately half of the trials produced one of the two shortest paths. The best tour found was A D E F G H I J B C with length 2.71
  • 31. Best tour for travelling salesman problem found by Hopfield and Tank