Skip to content

Commit 6b7bf10

Browse files
committed
MNT update notebooks
1 parent 02799d7 commit 6b7bf10

5 files changed

Lines changed: 20 additions & 9 deletions

File tree

tutorials/notebooks/movies_3T/00_load_colab.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
},
7070
"outputs": [],
7171
"source": [
72-
"# !ls 'drive' && echo SUCCESS || echo FAILURE"
72+
"# !ls drive/MyDrive/vim-5"
7373
]
7474
},
7575
{

tutorials/notebooks/movies_3T/02_plot_wordnet_model.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@
644644
},
645645
"outputs": [],
646646
"source": [
647-
"del pipeline"
647+
"del pipeline, kernel_ridge_cv"
648648
]
649649
}
650650
],

tutorials/notebooks/movies_3T/03_plot_hemodynamic_response.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
},
308308
"outputs": [],
309309
"source": [
310-
"del pipeline"
310+
"del pipeline, pipeline_no_delay"
311311
]
312312
}
313313
],

tutorials/notebooks/movies_3T/merged_for_colab.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
},
103103
"outputs": [],
104104
"source": [
105-
"# !ls 'drive' && echo SUCCESS || echo FAILURE"
105+
"# !ls drive/MyDrive/vim-5"
106106
]
107107
},
108108
{
@@ -1720,7 +1720,7 @@
17201720
},
17211721
"outputs": [],
17221722
"source": [
1723-
"del pipeline"
1723+
"del pipeline, kernel_ridge_cv"
17241724
]
17251725
},
17261726
{
@@ -2221,7 +2221,7 @@
22212221
},
22222222
"outputs": [],
22232223
"source": [
2224-
"del pipeline"
2224+
"del pipeline, pipeline_no_delay"
22252225
]
22262226
},
22272227
{

tutorials/notebooks/movies_4T/02_plot_ridge_model.ipynb

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
"cell_type": "markdown",
5252
"metadata": {},
5353
"source": [
54-
"Here the data is not loaded in memory, we only take a peak at the data shape.\n\n"
54+
"Here the data is not loaded in memory, we only take a peek at the data shape.\n\n"
5555
]
5656
},
5757
{
@@ -267,7 +267,7 @@
267267
"cell_type": "markdown",
268268
"metadata": {},
269269
"source": [
270-
"## Compare with a model without delays\n\n# To present an example of model comparison, we define here another model,\nwithout feature delays (i.e. no Delayer). This model is unlikely to perform\nwell, since fMRI responses are delayed in time with respect to the stimulus.\n\n"
270+
"## Compare with a model without delays\n\nTo present an example of model comparison, we define here another model,\nwithout feature delays (i.e. no Delayer). This model is unlikely to perform\nwell, since fMRI responses are delayed in time with respect to the stimulus.\n\n"
271271
]
272272
},
273273
{
@@ -278,7 +278,18 @@
278278
},
279279
"outputs": [],
280280
"source": [
281-
"pipeline = make_pipeline(\n StandardScaler(with_mean=True, with_std=False),\n KernelRidgeCV(\n alphas=alphas, cv=cv,\n solver_params=dict(n_targets_batch=100, n_alphas_batch=2,\n n_targets_batch_refit=50),\n Y_in_cpu=True),\n)\npipeline\n\npipeline.fit(X_train, Y_train)\nscores_nodelay = pipeline.score(X_test, Y_test)\nscores_nodelay = backend.to_numpy(scores_nodelay)"
281+
"pipeline = make_pipeline(\n StandardScaler(with_mean=True, with_std=False),\n KernelRidgeCV(\n alphas=alphas, cv=cv,\n solver_params=dict(n_targets_batch=100, n_alphas_batch=2,\n n_targets_batch_refit=50),\n Y_in_cpu=True),\n)\npipeline"
282+
]
283+
},
284+
{
285+
"cell_type": "code",
286+
"execution_count": null,
287+
"metadata": {
288+
"collapsed": false
289+
},
290+
"outputs": [],
291+
"source": [
292+
"pipeline.fit(X_train, Y_train)\nscores_nodelay = pipeline.score(X_test, Y_test)\nscores_nodelay = backend.to_numpy(scores_nodelay)"
282293
]
283294
},
284295
{

0 commit comments

Comments
 (0)