Note
Go to the end to download the full example code. or to run this example in your browser via Binder
FREM on Jimura et al “mixed gambles” dataset¶
In this example, we use fast ensembling of regularized models (FREM) to solve a regression problem, predicting the gain level corresponding to each beta maps regressed from mixed gambles experiment. FREM uses an implicit spatial regularization through fast clustering and aggregates a high number of estimators trained on various splits of the training set, thus returning a very robust decoder at a lower computational cost than other spatially regularized methods.
To have more details, see: FREM: fast ensembling of regularized models for robust decoding.
See the dataset description for more information on the data used in this example.
Load the data from the Jimura mixed-gamble experiment¶
from nilearn.datasets import fetch_mixed_gambles
data = fetch_mixed_gambles(n_subjects=16)
zmap_filenames = data.zmaps
behavioral_target = data.gain.to_numpy().ravel()
mask_filename = data.mask_img
[fetch_mixed_gambles] Dataset created in
/home/runner/nilearn_data/jimura_poldrack_2012_zmaps
[fetch_mixed_gambles] Downloading data from
https://www.nitrc.org/frs/download.php/7229/jimura_poldrack_2012_zmaps.zip ...
[fetch_mixed_gambles] Downloaded 15704064 of 104293434 bytes (15.1%%, 5.7s
remaining)
[fetch_mixed_gambles] Downloaded 43368448 of 104293434 bytes (41.6%%, 2.8s
remaining)
[fetch_mixed_gambles] Downloaded 70107136 of 104293434 bytes (67.2%%, 1.5s
remaining)
[fetch_mixed_gambles] Downloaded 96018432 of 104293434 bytes (92.1%%, 0.3s
remaining)
[fetch_mixed_gambles] ...done. (5 seconds, 0 min)
[fetch_mixed_gambles] Extracting data from
/home/runner/nilearn_data/jimura_poldrack_2012_zmaps/a4c8868ab5c651b8594da6f3204
ded3a/jimura_poldrack_2012_zmaps.zip...
[fetch_mixed_gambles] .. done.
Fit FREM¶
We compare both of these models to a pipeline ensembling many models
import warnings
from sklearn.exceptions import ConvergenceWarning
from nilearn.decoding import FREMRegressor
frem = FREMRegressor("svr", cv=10, standardize="zscore_sample", verbose=1)
with warnings.catch_warnings():
warnings.filterwarnings(action="ignore", category=ConvergenceWarning)
frem.fit(zmap_filenames, behavioral_target)
[FREMRegressor.fit] Loading data from [<nibabel.nifti1.Nifti1Image object at
0x7f9a0efe6190>, <nibabel.nifti1.Nifti1Image object at 0x7f9a0efe68e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efe69d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efe6880>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75fcf40>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75fc1f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75fcc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75fc130>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75fcfa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75fc9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75fc0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75fc910>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644c3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644c9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644c460>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644c940>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644c820>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a05a17fd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644ca60>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644cd90>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644c730>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644c8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644c190>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644c850>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644c160>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644ca90>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644cc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644cee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e644c250>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efada30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efadd30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efad6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efadb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efad3d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efad070>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efad670>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efad340>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efad6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efad370>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efadee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efad4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efad7c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efad100>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efad490>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c33964f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c3396d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c3396130>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c3396d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c3396b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c3396af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c3396910>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c33969d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c3396370>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c3396b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c33967f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c33963a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c3396610>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c3396d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c33963d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c33965e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e970>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6ef70>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6ed30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e3d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6ebb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e910>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e370>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e760>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e460>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6eb80>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e610>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e7f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e190>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef6e040>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8f0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8fc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8f100>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8f940>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8fc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8f910>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8fdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8fd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8ff40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8fa30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8fac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8f640>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8fbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8f700>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8f130>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0eb8f5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1292e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129190>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1296a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129100>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1291f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129070>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1290a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129550>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129310>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f129040>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7480bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7480790>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7480250>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7480970>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74807f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7480040>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74807c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7480f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74805b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7480fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74809a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a04cf1ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7480370>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74805e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7480ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731880>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7317c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731070>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731610>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7314f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7315e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731490>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731040>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731280>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731250>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731940>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b731bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f086940>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f086c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0867f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f086730>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f086460>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f086400>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f086e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0863d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f086d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f086d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0861f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f086490>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0860a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0862b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f199be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f199760>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f199fd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f199f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1991f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f199fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f199190>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f199370>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1994c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f199220>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1994f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f199430>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1991c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45d490>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45d250>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45d6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45d910>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45dfd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45d0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45d8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45d6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45d430>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45de20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45d730>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75d6100>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76178b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45dd00>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45d7c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b45d9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f135ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f135460>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f135a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1356d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f135610>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1351f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f135760>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f135fd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150f940>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150f670>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150fa90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150fd30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150f460>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150f0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150f730>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150faf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150ff40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150f610>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150fe20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150f4c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150fd00>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150f640>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150f2e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0150fbb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec93d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec933a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec939a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec93250>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec93700>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec93d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec93be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec93910>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec930d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec93670>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec93e80>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec938e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec939d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec935b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec936d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec93a00>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52850>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52610>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52310>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec522e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52490>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52250>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52700>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52550>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec52c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef78580>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef78fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef782e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef78730>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef786d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef78f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef78130>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef784c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef78af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef78190>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef78cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef78490>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef784f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef78970>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef787c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0450d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0458e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0452e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f045d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f045670>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0456a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f045d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f045700>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f045df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f045e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0459a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f045160>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f045100>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f045880>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f045460>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f045dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed60730>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed605e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a059c0100>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed603a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a059c0370>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a059c0580>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed5bc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed5bb80>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed5b5e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed5ba90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed5b400>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed5bac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed5bb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed5b250>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed5b0d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed5b550>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ed5b1f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7546640>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7546ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7546340>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75466a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75462b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75466d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7546b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75461c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7546e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7546b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7546370>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75463d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75468e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7546c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7546c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7546490>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bfbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bfdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bfb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bf760>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bffa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bf130>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bf3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bfdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bf7f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bfa00>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bfd00>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bff10>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bf0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bf970>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bf430>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c22bf730>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7f9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7f5e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7f280>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7f550>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7ff10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7f610>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7f310>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7fca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7f340>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7f4c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7f730>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7faf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7f100>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7f970>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec7feb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075f40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075160>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075460>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0757f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075880>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0754f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075490>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075580>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f075c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491bcd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491b4c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491bc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491bbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491b580>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491bdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491b1f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491b400>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491b7c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491b8e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491be20>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491b2e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491bf10>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491b460>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491b610>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491b6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99c491b220>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64910>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64580>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64880>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef649a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64460>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64940>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64730>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64370>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64130>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef645e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64070>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef64b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7436100>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74367f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74365b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7436220>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7436460>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7436310>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7436820>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7436e80>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74365e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7436760>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74366d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74364f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7436c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74368b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7436520>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7436490>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7436dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02a400>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02a3d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02ab20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02a9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02af10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02a5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02ac10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02ae80>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02a8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02a6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02ad00>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02aac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02a0d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02a850>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f02a6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f021100>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f021ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0215b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f021250>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f021430>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f021550>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0213d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f021ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f021be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f021b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f021eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f152af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1520a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1528b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f152310>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f152df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f152d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f152a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f152520>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f152d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1525e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f152be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f152820>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f152250>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1529d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642c340>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642cbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642ccd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642c940>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642c4c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642c9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642cdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642c3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642cca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642c220>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642c5e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642c8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642c640>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642c970>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642cd90>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642c160>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e642cc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c4d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c4340>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c4d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c47f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c4070>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c4a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c4820>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c4f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c40d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c4790>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c4ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0c4730>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7458130>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74589d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7458280>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74584f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7458c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7458850>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74588b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7458eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7458820>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74584c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7458100>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7458f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74581c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7458970>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7458af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7458bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef89f40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef893a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef89940>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef890d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef89c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef89a00>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef89f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef89160>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef893d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef892e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef898b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef89430>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e767fd00>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef89df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e767fd90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ef896a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7eb430>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7eb190>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7eb4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7ebe50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7ebee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7eb160>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7ebfd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7eb9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7eb460>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7ebd90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7ebdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7ebd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7ebfa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7eba60>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7ebb20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7eb880>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7eb6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efdac40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efda640>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efda9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efdad30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efda7c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efdae80>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efdab80>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efda9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efda040>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efdadf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efda220>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efda880>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efda5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb58b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb53a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5160>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5760>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5550>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb50d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb55b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e0eb5190>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1457c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f145340>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f145f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1452b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f145df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f145670>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f145280>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1451f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f145e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f145ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f1454f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f145c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f145a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f145130>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1fd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1370>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a16d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1520>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1700>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1190>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1760>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1490>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1220>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b7a1e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0a1c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0a1b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0a1dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7443c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7443940>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74439d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7443640>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7443d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74435e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7443460>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7443880>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7443fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74439a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7443df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7443550>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74434f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7443760>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7443610>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e74435b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76eec70>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76ee190>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76ee160>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76ee1f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76ee070>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76eee50>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76eeca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76ee940>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76ee220>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a059d1940>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a059d1e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a059d1be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a059d1970>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a059d1e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a059d1820>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7608c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7608400>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7608610>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76086a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76082b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7608100>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76083a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76080a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7608d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7608e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e76084c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41b610>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41be50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41b400>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41b550>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41b8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41b250>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41b220>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41b0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41b280>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41b460>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41be80>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41bf40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41b5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41bdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41bd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41bca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b41b880>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73e850>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73ec40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73e730>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73ee20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73ef10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73ee80>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73e940>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73e8e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73eeb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73e340>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73eee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73e9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73e640>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b73e310>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1bc70>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a05a17fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7720940>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0fc490>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7520550>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7520a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7520cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75200a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e77f0d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e7520400>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ae6e520>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ae6ef40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ae6e940>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1b610>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1bbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1b9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1b130>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1b760>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1bdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1baf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1b850>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1b3d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1b8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1bdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1bb20>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e6f1b400>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec356d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35130>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35580>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35670>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec355e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35100>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35070>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35460>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35190>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0ec35fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b2245e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224460>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b2248e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224610>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224370>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b2242b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224220>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b2245b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224940>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b224a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f079040>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f079a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f079820>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f079c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0796d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0792b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f079be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f079340>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0796a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0f0791c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75ee760>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75ee8e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75ee070>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75ee460>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75eec40>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75eed90>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75ee640>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75ee310>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75eef10>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75eecd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75ee880>,
<nibabel.nifti1.Nifti1Image object at 0x7f99e75ee970>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b1118b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111430>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b1117f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111760>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111400>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b1113a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111520>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111310>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0b111a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efff820>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efffcd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efffc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efffa30>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efff250>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efffbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efff160>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efff9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0effff70>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0effffd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0effffa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efffee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efff430>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efffd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efff9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efff580>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efbb9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efbb2e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efbb7c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efbb5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efbb6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efbb040>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efbb220>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efbbaf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f9a0efbba00>]
[FREMRegressor.fit] Computing mask
[FREMRegressor.fit] Resamping mask
[FREMRegressor.fit] Finished fit
[FREMRegressor.fit] Loading data from <nibabel.nifti1.Nifti1Image object at
0x7f9a0ae6e790>
[FREMRegressor.fit] Extracting region signals
[FREMRegressor.fit] Cleaning extracted signals
/home/runner/work/nilearn/nilearn/examples/02_decoding/plot_mixed_gambles_frem.py:46: UserWarning: Brain mask is bigger than the standard human brain. This object is probably not tuned to be used on such data.
frem.fit(zmap_filenames, behavioral_target)
[FREMRegressor.fit] Mask volume = 2.12333e+06mm^3 = 2123.33cm^3
[FREMRegressor.fit] Standard brain volume = 1.82724e+06mm^3
[FREMRegressor.fit] Original screening-percentile: 20
[FREMRegressor.fit] Corrected screening-percentile: 17.2111
[Parallel(n_jobs=1)]: Using backend SequentialBackend with 1 concurrent workers.
[Parallel(n_jobs=1)]: Done 1 out of 1 | elapsed: 2.2s remaining: 0.0s
[Parallel(n_jobs=1)]: Done 10 out of 10 | elapsed: 20.0s finished
[FREMRegressor.fit] Computing image from signals
[FREMRegressor.fit] Computing image from signals
Visualize FREM weights¶
from nilearn.plotting import plot_stat_map, show
plot_stat_map(
frem.coef_img_["beta"],
title="FREM",
display_mode="yz",
cut_coords=[20, -2],
threshold=0.2,
)
show()

We can observe that the coefficients map learnt by FREM is structured, due to the spatial regularity imposed by working on clusters and model ensembling. Although these maps have been thresholded for display, they are not sparse (i.e. almost all voxels have non-zero coefficients).
See also
other example using FREM, and related section of user guide.
Example use of TV-L1 SpaceNet¶
SpaceNet is another method available in Nilearn to decode with spatially sparse models. Depending on the penalty that is used, it yields either very structured maps (TV-L1) or unstructured maps (graph_net). Because of their heavy computational costs, these methods are not demonstrated on this example but you can try them easily if you have a few minutes. Example code is included below.
from nilearn.decoding import SpaceNetRegressor
# We use the regressor object since the task is to predict a continuous
# variable (gain of the gamble).
tv_l1 = SpaceNetRegressor(
mask=mask_filename,
penalty="tv-l1",
eps=1e-1, # prefer large alphas
memory="nilearn_cache",
n_jobs=2,
)
# tv_l1.fit(zmap_filenames, behavioral_target)
# plot_stat_map(tv_l1.coef_img_, title="TV-L1", display_mode="yz",
# cut_coords=[20, -2])
Total running time of the script: (0 minutes 33.643 seconds)
Estimated memory usage: 2878 MB