Skip to content

Commit bc6ac14

Browse files
committed
correct weight matrix equation
1 parent ae5dee0 commit bc6ac14

File tree

1 file changed

+2
-2
lines changed
  • content/assignments/Assignment_1:Hopfield_Networks

1 file changed

+2
-2
lines changed

content/assignments/Assignment_1:Hopfield_Networks/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ You should start by reading [Amit et al. (1985)](https://www.dropbox.com/scl/fi/
2222

2323
- **Memory Storage:** Implement the Hebbian learning rule to compute the weight matrix, given a set of network configurations (memories). This is described in **Equation 1.5** of the paper:
2424

25-
Let \( p \) be the number of patterns, \( N \) the number of neurons, and \( \xi_i^\mu \in \{-1, +1\} \) the value of neuron \( i \) in pattern \( \mu \). The synaptic coupling between neurons \( i \) and \( j \) is:
25+
Let \( p \) be the number of patterns and \( \xi_i^\mu \in \{-1, +1\} \) the value of neuron \( i \) in pattern \( \mu \). The synaptic coupling between neurons \( i \) and \( j \) is:
2626

2727
$$
28-
J_{ij} = \frac{1}{N} \sum_{\mu=1}^p \xi_i^\mu \xi_j^\mu
28+
J_{ij} = \sum_{\mu=1}^p \xi_i^\mu \xi_j^\mu
2929
$$
3030

3131
Note that the matrix is symmetric \( J_{ij} = J_{ji} \), and there are no self-connections by definition \( J_{ii} = 0 \).

0 commit comments

Comments
 (0)