SlideShare a Scribd company logo
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

More Related Content

What's hot

Radial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and DhanashriRadial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and Dhanashri
sheetal katkar
 
Perceptron & Neural Networks
Perceptron & Neural NetworksPerceptron & Neural Networks
Perceptron & Neural Networks
NAGUR SHAREEF SHAIK
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural Network
Saransh Choudhary
 
Recurrent neural networks rnn
Recurrent neural networks   rnnRecurrent neural networks   rnn
Recurrent neural networks rnn
Kuppusamy P
 
Artificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rulesArtificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rules
Mohammed Bennamoun
 
lecture07.ppt
lecture07.pptlecture07.ppt
lecture07.pptbutest
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
EdutechLearners
 
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
 
Neuro-fuzzy systems
Neuro-fuzzy systemsNeuro-fuzzy systems
Neuro-fuzzy systems
Sagar Ahire
 
Walsh transform
Walsh transformWalsh transform
Walsh transform
SachinMaithani1
 
Neural network
Neural networkNeural network
Neural network
Ramesh Giri
 
Artificial neural network for machine learning
Artificial neural network for machine learningArtificial neural network for machine learning
Artificial neural network for machine learning
grinu
 
Max net
Max netMax net
Artificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural NetworksArtificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural Networks
The Integral Worm
 
Perceptron
PerceptronPerceptron
Perceptron
Nagarajan
 
Image compression models
Image compression modelsImage compression models
Image compression models
priyadharshini murugan
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
PundrikPatel
 
Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural networkDEEPASHRI HK
 
Computational Learning Theory
Computational Learning TheoryComputational Learning Theory
Computational Learning Theorybutest
 

What's hot (20)

Radial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and DhanashriRadial basis function network ppt bySheetal,Samreen and Dhanashri
Radial basis function network ppt bySheetal,Samreen and Dhanashri
 
Perceptron & Neural Networks
Perceptron & Neural NetworksPerceptron & Neural Networks
Perceptron & Neural Networks
 
Learning Methods in a Neural Network
Learning Methods in a Neural NetworkLearning Methods in a Neural Network
Learning Methods in a Neural Network
 
Recurrent neural networks rnn
Recurrent neural networks   rnnRecurrent neural networks   rnn
Recurrent neural networks rnn
 
Artificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rulesArtificial Neural Networks Lect3: Neural Network Learning rules
Artificial Neural Networks Lect3: Neural Network Learning rules
 
lecture07.ppt
lecture07.pptlecture07.ppt
lecture07.ppt
 
Perceptron (neural network)
Perceptron (neural network)Perceptron (neural network)
Perceptron (neural network)
 
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
 
Neuro-fuzzy systems
Neuro-fuzzy systemsNeuro-fuzzy systems
Neuro-fuzzy systems
 
Walsh transform
Walsh transformWalsh transform
Walsh transform
 
Neural network
Neural networkNeural network
Neural network
 
Artificial neural network for machine learning
Artificial neural network for machine learningArtificial neural network for machine learning
Artificial neural network for machine learning
 
hopfield neural network
hopfield neural networkhopfield neural network
hopfield neural network
 
Max net
Max netMax net
Max net
 
Artificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural NetworksArtificial Intelligence: Artificial Neural Networks
Artificial Intelligence: Artificial Neural Networks
 
Perceptron
PerceptronPerceptron
Perceptron
 
Image compression models
Image compression modelsImage compression models
Image compression models
 
Image Representation & Descriptors
Image Representation & DescriptorsImage Representation & Descriptors
Image Representation & Descriptors
 
Artificial neural network
Artificial neural networkArtificial neural network
Artificial neural network
 
Computational Learning Theory
Computational Learning TheoryComputational Learning Theory
Computational Learning Theory
 

Similar to Hopfield Networks

Unit iii update
Unit iii updateUnit iii update
Unit iii update
Indira Priyadarsini
 
neural networksNnf
neural networksNnfneural networksNnf
neural networksNnf
Sandilya Sridhara
 
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
Mohammed Bennamoun
 
Multi Layer Network
Multi Layer NetworkMulti Layer Network
Neural Networks
Neural NetworksNeural Networks
Neural Networks
Sagacious IT Solution
 
CS767_Lecture_05.pptx
CS767_Lecture_05.pptxCS767_Lecture_05.pptx
CS767_Lecture_05.pptx
ShujatHussainGadi
 
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
 
MNN
MNNMNN
Artificial Neural Network
Artificial Neural NetworkArtificial Neural Network
Artificial Neural Network
Atul Krishna
 
soft computing
soft computingsoft computing
soft computingAMIT KUMAR
 
Neural-Networks.ppt
Neural-Networks.pptNeural-Networks.ppt
Neural-Networks.ppt
RINUSATHYAN
 
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
Akhil Upadhyay
 
071bct537 lab4
071bct537 lab4071bct537 lab4
071bct537 lab4
shailesh kandel
 
Perceptron Study Material with XOR example
Perceptron Study Material with XOR examplePerceptron Study Material with XOR example
Perceptron Study Material with XOR example
GSURESHKUMAR11
 
Echo state networks and locomotion patterns
Echo state networks and locomotion patternsEcho state networks and locomotion patterns
Echo state networks and locomotion patterns
Vito Strano
 
UofT_ML_lecture.pptx
UofT_ML_lecture.pptxUofT_ML_lecture.pptx
UofT_ML_lecture.pptx
abcdefghijklmn19
 
neural.ppt
neural.pptneural.ppt
neural.ppt
SuvamSankarKar
 

Similar to 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
 
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
 
neural.ppt
neural.pptneural.ppt
neural.ppt
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
Special education needs
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
GeoBlogs
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
EverAndrsGuerraGuerr
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
special B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdfspecial B.ed 2nd year old paper_20240531.pdf
special B.ed 2nd year old paper_20240531.pdf
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
The geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideasThe geography of Taylor Swift - some ideas
The geography of Taylor Swift - some ideas
 
Thesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.pptThesis Statement for students diagnonsed withADHD.ppt
Thesis Statement for students diagnonsed withADHD.ppt
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 

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