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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

208<br />

ARTIFICIAL NEURAL NETWORKS<br />

Figure 6.26<br />

Euclidean distance as a measure <strong>of</strong> similarity between vec<strong>to</strong>rs X and W j<br />

The similarity between the vec<strong>to</strong>rs X and W j is determined as the reciprocal <strong>of</strong><br />

the Euclidean distance d. In Figure 6.26, the Euclidean distance between the<br />

vec<strong>to</strong>rs X and W j is presented as the length <strong>of</strong> the line joining the tips <strong>of</strong><br />

those vec<strong>to</strong>rs. Figure 6.26 clearly demonstrates that the smaller the Euclidean<br />

distance is, the greater will be the similarity between the vec<strong>to</strong>rs X and W j .<br />

To identify the winning neuron, j X , that best matches the input vec<strong>to</strong>r X, we<br />

may apply the following condition (Haykin, 1999):<br />

j X ¼ min<br />

j<br />

kX W j k; j ¼ 1; 2; ...; m ð6:38Þ<br />

where m is the number <strong>of</strong> neurons in the Kohonen layer.<br />

Suppose, for instance, that the two-dimensional input vec<strong>to</strong>r X is presented <strong>to</strong><br />

the three-neuron Kohonen network,<br />

<br />

X ¼ 0:52 <br />

0:12<br />

The initial weight vec<strong>to</strong>rs, W j , are given by<br />

<br />

W 1 ¼ 0:27 <br />

0:81<br />

<br />

W 2 ¼ 0:42 <br />

0:70<br />

<br />

W 3 ¼ 0:43 <br />

0:21<br />

We find the winning (best-matching) neuron j X using the minimum-distance<br />

Euclidean criterion:<br />

qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi<br />

qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi<br />

d 1 ¼ ðx 1 w 11 Þ 2 þðx 2 w 21 Þ 2 ¼ ð0:52 0:27Þ 2 þð0:12 0:81Þ 2 ¼ 0:73<br />

qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi<br />

qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi<br />

d 2 ¼ ðx 1 w 12 Þ 2 þðx 2 w 22 Þ 2 ¼ ð0:52 0:42Þ 2 þð0:12 0:70Þ 2 ¼ 0:59<br />

qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi<br />

qffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffiffi<br />

d 3 ¼ ðx 1 w 13 Þ 2 þðx 2 w 23 Þ 2 ¼ ð0:52 0:43Þ 2 þð0:12 0:21Þ 2 ¼ 0:13<br />

Thus, neuron 3 is the winner and its weight vec<strong>to</strong>r W 3 is <strong>to</strong> be updated<br />

according <strong>to</strong> the competitive learning rule described in Eq. (6.36). Assuming that<br />

the learning rate parameter is equal <strong>to</strong> 0.1, we obtain<br />

w 13 ¼ ðx 1 w 13 Þ¼0:1ð0:52 0:43Þ ¼0:01<br />

w 23 ¼ ðx 2 w 23 Þ¼0:1ð0:12 0:21Þ ¼ 0:01

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

Saved successfully!

Ooh no, something went wrong!