26.12.2013 Views

AI - a Guide to Intelligent Systems.pdf - Member of EEPIS

AI - a Guide to Intelligent Systems.pdf - Member of EEPIS

AI - a Guide to Intelligent Systems.pdf - Member of EEPIS

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

THE HOPFIELD NETWORK<br />

193<br />

fundamental memory ð 1; 1; 1Þ attracts unstable states ð 1; 1; 1Þ, ð 1; 1; 1Þ<br />

and ð1; 1; 1Þ. Here again, each <strong>of</strong> the unstable states represents a single error,<br />

compared <strong>to</strong> the fundamental memory. Thus, the Hopfield network can indeed<br />

act as an error correction network. Let us now summarise the Hopfield network<br />

training algorithm.<br />

Step 1:<br />

S<strong>to</strong>rage<br />

The n-neuron Hopfield network is required <strong>to</strong> s<strong>to</strong>re a set <strong>of</strong> M fundamental<br />

memories, Y 1 ; Y 2 ; ...; Y M . The synaptic weight from neuron i <strong>to</strong><br />

neuron j is calculated as<br />

8<br />

><<br />

X M<br />

y m;i y m;j ; i 6¼ j<br />

w ij ¼<br />

; ð6:22Þ<br />

m¼1 >:<br />

0; i ¼ j<br />

where y m;i and y m;j are the ith and the jth elements <strong>of</strong> the fundamental<br />

memory Y m , respectively. In matrix form, the synaptic weights<br />

between neurons are represented as<br />

W ¼ XM<br />

m¼1<br />

Y m Y T m<br />

MI<br />

The Hopfield network can s<strong>to</strong>re a set <strong>of</strong> fundamental memories if the<br />

weight matrix is symmetrical, with zeros in its main diagonal (Cohen<br />

and Grossberg, 1983). That is,<br />

2<br />

3<br />

0 w 12 w 1i w 1n<br />

w 21 0 w 2i w 2n<br />

.<br />

.<br />

. . . W ¼<br />

w i1 w i2 0 w ; ð6:23Þ<br />

in<br />

6 . . . .<br />

7<br />

4 . . . . 5<br />

w n1 w n2 w ni 0<br />

where w ij ¼ w ji .<br />

Once the weights are calculated, they remain fixed.<br />

Step 2:<br />

Testing<br />

We need <strong>to</strong> confirm that the Hopfield network is capable <strong>of</strong> recalling all<br />

fundamental memories. In other words, the network must recall any<br />

fundamental memory Y m when presented with it as an input. That is,<br />

x m;i ¼ y m;i ; i ¼ 1; 2; ...; n; m ¼ 1; 2; ...; M<br />

0<br />

1<br />

y m;i ¼ sign@<br />

Xn<br />

j¼1<br />

w ij x m;j<br />

i<br />

A;

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!