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

[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 55926784 of 104293434 bytes (53.6%%,    0.9s
remaining)
[fetch_mixed_gambles]  ...done. (2 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
0x7f1f0c54f580>, <nibabel.nifti1.Nifti1Image object at 0x7f1f0c54f820>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54feb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54d9c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54cd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54fa90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54f310>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54e2f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54c9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54dcf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54da50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54fa00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54f850>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54c640>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54f4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54e650>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54ed10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54d570>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54ddb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54cbb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54f940>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54e200>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54ceb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54cf70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54d810>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54fd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee3641390>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c92af80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54e7d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c92b310>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee3641270>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54e800>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f46a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5b70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4610>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f70a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f65c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f67a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5390>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5a80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5240>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5270>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f6ec0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5bd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5de0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f60b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f72e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f6830>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5030>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f6b00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f6200>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f7bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4280>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f7c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5900>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f75b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f7250>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4880>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f49d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f76a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f67d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5cf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f75e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5480>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f6a10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f6aa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f46d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f71c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f62f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f6a70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f61d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4370>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f7d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4970>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f7730>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f73d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f7190>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4100>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5d80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5a20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f76d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4430>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f4340>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f52d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c9f5090>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fbf10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fb4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f85e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fa140>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fb7f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fbaf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fa7d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fa3b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fb1f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f97b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fb670>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f9780>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fb730>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fa5c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fbd90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0faaa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f9d50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fb850>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f87f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fa830>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8070>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0faf20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fa8f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fabf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f90c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8190>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fad40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fbfd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8250>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fa530>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f9360>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8220>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fa920>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f89a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8580>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fbdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f82b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fb520>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f9660>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f9900>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8400>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f84f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fb3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fbf40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fafb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fb1c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fbbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f91e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fa6b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f9ae0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f9990>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8519060>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fbc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f8640>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8aac610>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0fb0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cf735b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee7076fb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c0f9db0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cf72fb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee366bf70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ef149eb00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee3668a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee3669690>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee3669ed0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ef14b1270>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ef14b2e00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ef14b3640>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ef14b0a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ef14b3fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ef14b3f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8af5f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8af5c00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8af6110>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8af7520>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c2f5900>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8af7bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c2f5720>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c2f4d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8971f90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8971d80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8972350>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee83f3e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8972bf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8972980>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8971c00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8970760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127910>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c126560>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c1260e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c125e10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c126e00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c126650>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c124070>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c125600>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c126e60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c125bd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c1273a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c124df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c125510>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c126050>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c126d10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c126a70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c1241f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c1243d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c125060>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c124820>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c125840>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c125000>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c1264d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c124340>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c124550>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c1240a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c1278e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127400>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c126860>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c124790>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127160>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c125360>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c124940>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c1276a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c127a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c125a20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c1255a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c124730>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c124e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c1259f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852c640>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852e200>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852e110>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852ce80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852da50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852dcc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852d8d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852fe50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852c7f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852cf40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852ec80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852e380>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852d210>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852cc70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852fcd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852c8e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852ece0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852db10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852f790>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852d5d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852df30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852e890>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852d4e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852c580>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852c550>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852dff0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852ffa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852f280>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852cbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852ca30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852feb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852cfa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852cac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852c2b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852f3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852faf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852db40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852e290>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852d090>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852df90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852ff10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852d6f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852fca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852c760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852dd20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852c5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852dba0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852f7f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852e410>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852cd30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852c220>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852d330>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852dc90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee852e6b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee36311e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee36301f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee36313f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee3631270>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8608220>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee36313c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0af8fd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0af8f700>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee3633be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee857ca30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee857c670>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee857c4c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee857cc70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee857d240>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ef14298a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ef142a740>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee857cc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee857caf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c943a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c952d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c94e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c96740>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c96200>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c95300>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c972b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c96c80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c96dd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c970d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c94ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bd7e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bc940>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be590>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be980>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bd720>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bd450>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bd6c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf250>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bda50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bdd20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bc5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bdde0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bcc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bddb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bca00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf820>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be6b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be4d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bee90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bdb40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bcfa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf910>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bd4e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bfbb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bcb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bc670>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf430>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bc370>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bd2a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be380>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bdf60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be950>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf670>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be9b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bebc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3befe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be890>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bca60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bcee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf7c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf3d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bd810>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bc040>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bd5d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bca30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be320>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf970>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf730>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be020>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bc5e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bfdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bf2e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bc0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bfc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bc160>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be770>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3be2f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bcf10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bcaf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bd8d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bff70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ebf3bc400>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee88566e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee88569e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8856770>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee88560e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8854760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee88563b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee88541f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8855c30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee88569b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee88545b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8854130>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8855ed0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8855d50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8856860>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8856590>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd535b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52d10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52020>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53160>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53400>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd525c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52800>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52770>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd51d20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53610>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52470>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd51f00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52260>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52290>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53220>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd51750>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52da0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd51a50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd531f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd514b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd50eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd50a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd50850>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd50430>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53820>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd51ae0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53130>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd51d50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd51c00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd504f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd50670>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53100>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53340>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53040>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd50820>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52860>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd525f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd51390>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd538b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52980>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd534f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52fb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd530a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd51540>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd52fe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd518d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee3690160>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0cd53760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee3690280>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee36909d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1711180>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1711330>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1712f80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1712ad0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17109d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1710eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1712e30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713370>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1710100>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17129e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1711630>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17101c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713820>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1712470>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1711990>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1711810>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713fd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1710760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17105e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17121d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1710700>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1712200>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17115d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713520>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713250>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17100d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17129b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17122c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1712e60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1712560>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17103d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713880>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1710820>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1710ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1711c30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1710310>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1712f50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1712c20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1710f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1711f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1710160>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17107f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713220>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713040>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17137c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1710460>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1711d50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea17107c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713a00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1713d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1712e90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ea1710430>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511c60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512050>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5102e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c513850>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5126e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511930>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511870>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c513790>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512470>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511840>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512860>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512740>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c510eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511120>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5117b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512650>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5103d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5104c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511cc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c513e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5131f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c510d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512830>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5128c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c510760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511f30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512530>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c510340>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511bd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511210>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c513c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5112a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c513550>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511ab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c513220>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512fe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5136a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5106a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5131c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c510c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511330>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5137c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512920>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5116f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c513a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512380>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512a40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512110>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c510f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5132b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5127d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512350>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c512b00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c513cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5107f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c513b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511a50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5120e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5107c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5109a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5124d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c511540>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c510a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c5111e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c510790>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c513040>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c513ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859a890>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8599e70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859b190>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859aef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee85995a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859b0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8599e40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8599ae0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859abc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859bd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598610>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859a620>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859aad0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8599990>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598040>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859a260>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859b8e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859b4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859a2c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859bdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee85981f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859a410>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859a530>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8599270>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859a860>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859ae90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859b6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859a320>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598730>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859bbb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859a2f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598a00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859be80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee85990c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859b4c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859b250>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859a230>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859afe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee85990f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee859b5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598fd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee85991b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8598dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee890ac80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8909510>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee890ac50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee88fb4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8909330>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c78e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8c78460>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee890b6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8908bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8a6d6c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8a6f5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8a6c490>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee85c04f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee85c00a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee85c0520>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee85c1570>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8431390>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8432800>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8430b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee84311b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8430d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8430be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8430b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee84313c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee84322c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8432a40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8430b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8430eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8431210>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f093a30d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f093a32b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee366dd50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f093a3250>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f093a3130>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54d870>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54d1e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54f130>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54faf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54fe50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54f370>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54eef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54c910>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54c340>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c54ca90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8933f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee89323b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8930ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8932dd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8932950>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee89329e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fc220>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ffe80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ffdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fe2f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fdc90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fc5e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd510>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ffc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fca30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fdba0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd480>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fe8c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fff70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fc670>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd780>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ff010>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fe740>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ff6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ff550>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fea40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fc7f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ffaf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd3f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd900>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ffd90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fdc30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fcb20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fded0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fc3d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd300>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fc8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fe4a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd960>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ff6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fc550>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fcc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd030>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fc4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fcac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fe800>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fecb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fdea0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd7b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ff880>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fdb40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fe260>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fe530>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fcd30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fe170>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fda20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd660>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7feb30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fca60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ff790>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd210>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fc9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ff970>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fcf40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ffe20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fc2b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fd6f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fdb10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7fe920>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7feb00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c7ff520>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887a4a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887b0d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887a500>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8879540>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8878ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887b460>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8879330>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8879360>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887a6b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887b910>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887bcd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887acb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee88797e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8878fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887a6e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887b310>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887b280>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887abf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8879870>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee887aa70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1ee8878e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c417970>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c415f30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c416680>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c417910>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c416170>,
<nibabel.nifti1.Nifti1Image object at 0x7f1f0c414400>]
[FREMRegressor.fit] Computing mask
[FREMRegressor.fit] Resampling mask
[FREMRegressor.fit] Finished fit
[FREMRegressor.fit] Loading data from <nibabel.nifti1.Nifti1Image object at
0x7f1ee87c1ed0>
[FREMRegressor.fit] Extracting region signals
[FREMRegressor.fit] Cleaning extracted signals
/home/runner/work/nilearn/nilearn/examples/02_decoding/plot_mixed_gambles_frem.py:46: MaskWarning:

Brain mask (2123327.999999999 mm^3) is bigger than the standard human brain (1882989.0 mm^3).This object is probably not tuned to be used on such data.

[FREMRegressor.fit] Mask volume = 2.12333e+06mm^3 = 2123.33cm^3
[FREMRegressor.fit] Standard brain volume = 1.88299e+06mm^3
[FREMRegressor.fit] Original screening-percentile: 20
[FREMRegressor.fit] Corrected screening-percentile: 17.7362
[Parallel(n_jobs=1)]: Done  10 out of  10 | elapsed:   18.4s 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()
plot mixed gambles frem
/home/runner/work/nilearn/nilearn/examples/02_decoding/plot_mixed_gambles_frem.py:62: UserWarning:

You are using the 'agg' matplotlib backend that is non-interactive.
No figure will be plotted when calling matplotlib.pyplot.show() or nilearn.plotting.show().
You can fix this by installing a different backend: for example via
        pip install PyQt6

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,
    verbose=1,
)
# 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 30.374 seconds)

Estimated memory usage: 2707 MB

Gallery generated by Sphinx-Gallery