You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/assignments/Assignment_1:Hopfield_Networks/hopfield_assignment_template.ipynb
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@
22
22
"\n",
23
23
"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",
24
24
"\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/)."
Copy file name to clipboardExpand all lines: content/assignments/Assignment_2:Search_of_Associative_Memory_Model/sam_assignment_template.ipynb
+48-37Lines changed: 48 additions & 37 deletions
Original file line number
Diff line number
Diff line change
@@ -1,38 +1,34 @@
1
1
{
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
-
},
17
2
"cells": [
18
3
{
19
4
"cell_type": "markdown",
20
5
"metadata": {
21
-
"id": "view-in-github",
22
-
"colab_type": "text"
6
+
"colab_type": "text",
7
+
"id": "view-in-github"
23
8
},
24
9
"source": [
25
10
"<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>"
26
11
]
27
12
},
28
13
{
29
14
"cell_type": "markdown",
15
+
"metadata": {},
30
16
"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",
33
26
"metadata": {
34
27
"id": "ZNp6i_sXKA8r"
35
-
}
28
+
},
29
+
"source": [
30
+
"Imports"
31
+
]
36
32
},
37
33
{
38
34
"cell_type": "code",
@@ -50,15 +46,20 @@
50
46
},
51
47
{
52
48
"cell_type": "markdown",
53
-
"source": [
54
-
"Basic skeleton for the SAM model"
55
-
],
56
49
"metadata": {
57
50
"id": "atpXuzOFKDSb"
58
-
}
51
+
},
52
+
"source": [
53
+
"Basic skeleton for the SAM model"
54
+
]
59
55
},
60
56
{
61
57
"cell_type": "code",
58
+
"execution_count": null,
59
+
"metadata": {
60
+
"id": "PUXuEy_3-q3E"
61
+
},
62
+
"outputs": [],
62
63
"source": [
63
64
"class item(object):\n",
64
65
" count = 0\n",
@@ -132,28 +133,38 @@
132
133
" # - recall (given cue strength):\n",
133
134
" # - if successful, reset m1_count and m2_count, set previous_recall to item, return sampled item\n",
134
135
" # - 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
+
]
141
137
},
142
138
{
143
139
"cell_type": "markdown",
140
+
"metadata": {
141
+
"id": "ipssh_MdXWF8"
142
+
},
144
143
"source": [
145
144
"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",
147
146
" - 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",
148
147
" - I suggest using [scipy.optimize.minimize](https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html) to estimate the model parameters.\n",
149
148
" - Create observed/predicted plots for held-out data:\n",
0 commit comments