Skip to content

Commit

Permalink
cleanup + math typo
Browse files Browse the repository at this point in the history
  • Loading branch information
glibesyck committed Jul 23, 2024
1 parent 49e589c commit 65b4d68
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tutorials/W2D2_NeuroSymbolicMethods/W2D2_Tutorial1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,7 @@
" raise NotImplementedError(\"Student exercise: complete similarity calculation between input vector and weights of the network.\")\n",
" ###################################################################\n",
" sims = ...\n",
" max_sim = softmax(sims * self.temp, axis=0)\n",
" max_sim = softmax(sims * self.temp, axis=1)\n",
" return sspspace.SSP(...)\n",
"\n",
"\n",
Expand Down Expand Up @@ -1444,7 +1444,7 @@
" self.temp = temperature\n",
" def __call__(self, x):\n",
" sims = x @ self.weights.T\n",
" max_sim = softmax(sims * self.temp, axis=0)\n",
" max_sim = softmax(sims * self.temp, axis=1)\n",
" return sspspace.SSP(max_sim @ self.weights)\n",
"\n",
"\n",
Expand Down Expand Up @@ -2188,7 +2188,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.19"
"version": "3.11.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 65b4d68

Please sign in to comment.