Skip to content

Commit 193bef2

Browse files
committed
updated hopfield network and SAM model template notebooks, added SAM template to TOC
1 parent 6b9549b commit 193bef2

File tree

3 files changed

+51
-38
lines changed

3 files changed

+51
-38
lines changed

content/_toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ parts:
3535
sections:
3636
- file: assignments/Assignment_1:Hopfield_Networks/hopfield_assignment_template
3737
- file: assignments/Assignment_2:Search_of_Associative_Memory_Model/README
38+
sections:
39+
- file: assignments/Assignment_2:Search_of_Associative_Memory_Model/sam_assignment_template
3840
- file: assignments/Assignment_3:Context_Maintenance_and_Retrieval_Model/README
3941
- file: assignments/Assignment_4:_Laplace_Temporal_Context_Model/README
4042
- file: assignments/Final_Project/README

content/assignments/Assignment_1:Hopfield_Networks/hopfield_assignment_template.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"\n",
2323
"This notebook provides a suggested starter template for completing the [Hopfield network assignment](https://contextlab.github.io/memory-models-course/assignments/Assignment_1%3AHopfield_Networks/README.html).\n",
2424
"\n",
25-
"You should submit your assignment by uploading your completed notebook to [Canvas](https://canvas.dartmouth.edu/courses/71051/assignments/517353). Please ensure that your notebook runs without errors in [Google Colaborator](https://colab.research.google.com/)."
25+
"You should submit your assignment by uploading your completed notebook to [Canvas](https://canvas.dartmouth.edu/courses/71051/assignments/517353). Please ensure that your notebook runs without errors in [Google Colaboratory](https://colab.research.google.com/)."
2626
]
2727
},
2828
{

content/assignments/Assignment_2:Search_of_Associative_Memory_Model/sam_assignment_template.ipynb

Lines changed: 48 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,34 @@
11
{
2-
"nbformat": 4,
3-
"nbformat_minor": 0,
4-
"metadata": {
5-
"colab": {
6-
"provenance": [],
7-
"include_colab_link": true
8-
},
9-
"kernelspec": {
10-
"name": "python3",
11-
"display_name": "Python 3"
12-
},
13-
"language_info": {
14-
"name": "python"
15-
}
16-
},
172
"cells": [
183
{
194
"cell_type": "markdown",
205
"metadata": {
21-
"id": "view-in-github",
22-
"colab_type": "text"
6+
"colab_type": "text",
7+
"id": "view-in-github"
238
},
249
"source": [
2510
"<a href=\"https://colab.research.google.com/github/ContextLab/memory-models-course/blob/main/content/Assignment_2%3ASearch_of_Associative_Memory_Model/sam_assignment_template.ipynb\" target=\"_parent\"><img src=\"https://colab.research.google.com/assets/colab-badge.svg\" alt=\"Open In Colab\"/></a>"
2611
]
2712
},
2813
{
2914
"cell_type": "markdown",
15+
"metadata": {},
3016
"source": [
31-
"Imports"
32-
],
17+
"# Submission Template\n",
18+
"\n",
19+
"This notebook provides a suggested starter template for completing the [SAM model assignment](https://contextlab.github.io/memory-models-course/assignments/Assignment_2%3ASearch_of_Associative_Memory_Model/README.html).\n",
20+
"\n",
21+
"You should submit your assignment by uploading your completed notebook to [Canvas](https://canvas.dartmouth.edu/courses/71051/assignments/517354). Please ensure that your notebook runs without errors in [Google Colaboratory](https://colab.research.google.com/)."
22+
]
23+
},
24+
{
25+
"cell_type": "markdown",
3326
"metadata": {
3427
"id": "ZNp6i_sXKA8r"
35-
}
28+
},
29+
"source": [
30+
"Imports"
31+
]
3632
},
3733
{
3834
"cell_type": "code",
@@ -50,15 +46,20 @@
5046
},
5147
{
5248
"cell_type": "markdown",
53-
"source": [
54-
"Basic skeleton for the SAM model"
55-
],
5649
"metadata": {
5750
"id": "atpXuzOFKDSb"
58-
}
51+
},
52+
"source": [
53+
"Basic skeleton for the SAM model"
54+
]
5955
},
6056
{
6157
"cell_type": "code",
58+
"execution_count": null,
59+
"metadata": {
60+
"id": "PUXuEy_3-q3E"
61+
},
62+
"outputs": [],
6263
"source": [
6364
"class item(object):\n",
6465
" count = 0\n",
@@ -132,28 +133,38 @@
132133
" # - recall (given cue strength):\n",
133134
" # - if successful, reset m1_count and m2_count, set previous_recall to item, return sampled item\n",
134135
" # - otherwise increment m1_count or m2_count. if either exceed M_1/M2, return None"
135-
],
136-
"metadata": {
137-
"id": "PUXuEy_3-q3E"
138-
},
139-
"execution_count": null,
140-
"outputs": []
136+
]
141137
},
142138
{
143139
"cell_type": "markdown",
140+
"metadata": {
141+
"id": "ipssh_MdXWF8"
142+
},
144143
"source": [
145144
"Other tasks:\n",
146-
" - Fit params to [Murdock (1962) dataset](https://memory.psych.upenn.edu/files/pubs/Murd62.data.tgz)\n",
145+
" - Fit params to [Murdock (1962) dataset](https://github.com/ContextLab/memory-models-course/tree/main/content/assignments/Assignment_2%3ASearch_of_Associative_Memory_Model/Murd62%20data)\n",
147146
" - Need to define a \"loss\" function. I suggest computing MSE for one or more behavioral curves, computed for a subset of the Murdock (1962) participants/lists\n",
148147
" - I suggest using [scipy.optimize.minimize](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html) to estimate the model parameters.\n",
149148
" - Create observed/predicted plots for held-out data:\n",
150149
" - p(first recall)\n",
151150
" - p(recall)\n",
152151
" - lag-CRP"
153-
],
154-
"metadata": {
155-
"id": "ipssh_MdXWF8"
156-
}
152+
]
157153
}
158-
]
159-
}
154+
],
155+
"metadata": {
156+
"colab": {
157+
"include_colab_link": true,
158+
"provenance": []
159+
},
160+
"kernelspec": {
161+
"display_name": "Python 3",
162+
"name": "python3"
163+
},
164+
"language_info": {
165+
"name": "python"
166+
}
167+
},
168+
"nbformat": 4,
169+
"nbformat_minor": 0
170+
}

0 commit comments

Comments
 (0)