Skip to content

Commit 7b1c9cd

Browse files
authored
Merge pull request #3 from Milstein-Lab/gpu
Notebook documentation
2 parents bc81bf7 + 3bf4148 commit 7b1c9cd

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

EIANN/notebooks/explore_MNIST.ipynb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,13 @@
6262
"analyze_receptive_fields = None # ['H2E']"
6363
]
6464
},
65+
{
66+
"cell_type": "markdown",
67+
"metadata": {},
68+
"source": [
69+
"Set `train_steps` (above) to 20000 for full training and to replicate results in the paper. Set to 2000 for quick testing."
70+
]
71+
},
6572
{
6673
"cell_type": "code",
6774
"execution_count": null,
@@ -74,7 +81,7 @@
7481
" projection_config = network_config['projection_config']\n",
7582
" training_kwargs = network_config['training_kwargs']\n",
7683
"\n",
77-
" return Network(layer_config, projection_config, seed=network_seed, **training_kwargs)"
84+
" return Network(layer_config, projection_config, seed=network_seed, device='cpu', **training_kwargs)"
7885
]
7986
},
8087
{

EIANN/notebooks/explore_spirals.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
},
7373
{
7474
"cell_type": "code",
75-
"execution_count": 10,
75+
"execution_count": null,
7676
"id": "c77d577f",
7777
"metadata": {},
7878
"outputs": [
@@ -127,7 +127,7 @@
127127
],
128128
"source": [
129129
"# Create network object\n",
130-
"spiral_net = ut.build_EIANN_from_config(config_file_path, network_seed=network_seed)\n",
130+
"spiral_net = ut.build_EIANN_from_config(config_file_path, network_seed=network_seed, device='cpu')\n",
131131
"\n",
132132
"# Train network\n",
133133
"data_generator.manual_seed(data_seed)\n",

0 commit comments

Comments
 (0)