Skip to content

Commit ca599e2

Browse files
committed
expand on explanation for retrieval rule
1 parent 60cd970 commit ca599e2

File tree

1 file changed

+5
-1
lines changed
  • content/assignments/Assignment_1:Hopfield_Networks

1 file changed

+5
-1
lines changed

content/assignments/Assignment_1:Hopfield_Networks/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ $$
4848
S_i(t+1) = \text{sign}(h_i(t)) = \text{sign} \left( \sum_{j} J_{ij} S_j(t) \right)
4949
$$
5050

51-
Here, $S_i \in \{-1, +1\}$ is the current state of neuron $i$.
51+
Here, $S_i \in \{-1, +1\}$ is the current state of neuron $i$. To "retrieve" a memory:
52+
- Start by setting all of the neural activations to the **cue**.
53+
- Loop through all neurons (in a random order), updating one at a time according to the above equation, given the weight matrix ($J$) and the current activities of each of the other neurons.
54+
- Continue looping until either (a) you have "updated" every neuron in the latest loop, but no activities have changed, or (b) a maximum number of iterations is reached.
55+
- Return the current state of the network as the retrieved memory.
5256

5357
---
5458

0 commit comments

Comments
 (0)