![]() |
|||
![]() |
In both cases, compute the weight matrix by hand. Demonstrate (again, using pencil and paper) that the network can properly classify the prototype patterns. Try ``corrupted'' patterns (e.g., misshapen bananas, light pineapples) and see what the output is.
Next, implement the two networks using your favorite programming language and verify that you get the same results. I suggest that you write at least two functions: one that implements the computation of each network, taking as input the network input and the weights/biases, and one that implements the learning rule, taking as input the training set and returning the resultant weights/biases when training is complete.
Use your code to compute the Hopfield weight matrix to store these three pattern. Verify the operation of the network for ``clean'' input. Next, investigate the network's ability to retrieve ``damaged'' patterns. Do this in two ways: