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]  ...done. (1 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
0x7f35204913f0>, <nibabel.nifti1.Nifti1Image object at 0x7f3520493040>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520492ef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204924d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204920e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491c00>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520493e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491ae0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491660>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520490f40>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204916f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520492350>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520490700>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491990>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520490910>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204938b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491ea0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520492890>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520493460>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520492620>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520492c20>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520492980>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491540>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520492a40>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520490bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491030>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520490430>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520490b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204923e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491c30>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520490e80>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520490670>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520493ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491630>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520493100>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520490a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204918a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520492e60>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491a20>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204938e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491870>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520493bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491cc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520490af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204930a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204926e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520491570>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204927a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520490d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204905b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520493b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520493520>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520493490>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204916c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520493d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520493430>,
<nibabel.nifti1.Nifti1Image object at 0x7f3520493b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f35204922c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512158ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35121581c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351215a740>,
<nibabel.nifti1.Nifti1Image object at 0x7f351215a200>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512158070>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512159600>,
<nibabel.nifti1.Nifti1Image object at 0x7f351215b280>,
<nibabel.nifti1.Nifti1Image object at 0x7f351215a920>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512158f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f351215b6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351215a2c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351215a800>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512158430>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512158730>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512158e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712410>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710640>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713790>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d7134f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710160>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712830>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d7113c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710190>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712fb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d711ab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712e00>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d7119c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712020>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712b00>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712530>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713070>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713520>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713850>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712770>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710490>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713550>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712920>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d711840>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713490>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d711a20>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712e30>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713760>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710070>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710760>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d711450>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710280>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d711690>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d7115a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712b90>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d711f90>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d7127d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d711150>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d711ff0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712e90>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712350>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712440>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713160>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710520>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710100>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713910>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d7128f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712f80>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710a00>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710220>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d711180>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713100>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710310>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d710700>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d712620>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d713b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f350d7118d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124ba6e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124b8af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124b8520>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124bae60>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124bb070>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124bb910>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124b8310>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124bb340>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124b89a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124b9780>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124ba860>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124b90f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124bb670>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124babc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124ba560>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124ba2c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35124b8a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e67a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e67d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6740>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e5f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e5510>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6a70>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e5ea0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4130>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6b30>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e5db0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e5ed0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6bf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4f40>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e72e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7550>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4700>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6b00>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4280>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6890>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e5fc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6ec0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4520>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e5090>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4100>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7760>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4310>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7190>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4670>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4340>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4490>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6d40>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e48e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e44c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4220>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7970>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e5c60>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e59f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e5150>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6560>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6ce0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4730>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7790>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6530>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7070>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e5d20>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6380>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6cb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e63b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7310>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4250>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e71c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7520>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e7040>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e4370>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e6b60>,
<nibabel.nifti1.Nifti1Image object at 0x7f35397e62c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd630>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5deb00>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd5a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5deaa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5df280>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc1c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5df5e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5de6e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dee90>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5de410>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5df700>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd210>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc280>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd750>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dce50>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc820>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dcfa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5de4a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc2b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5ded70>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5de650>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dcbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5ddb40>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5deb60>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dda20>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd090>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5ddf60>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd570>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc250>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5ddab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dfd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc4c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5de7d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc850>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5de230>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd990>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5de380>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5de680>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd600>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dcb80>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc760>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd6c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc130>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5ded40>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dcd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd660>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd930>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5de830>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc1f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5df610>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dddb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd510>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc220>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5df970>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dcb20>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dc520>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5dd780>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5df400>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f5de860>,
<nibabel.nifti1.Nifti1Image object at 0x7f3530363f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f3530363fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f352fcee680>,
<nibabel.nifti1.Nifti1Image object at 0x7f3530363d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f35304bc0d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3530363ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35304bc070>,
<nibabel.nifti1.Nifti1Image object at 0x7f353048ffa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35303637c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f353048feb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f353048fdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdd4e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcde050>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdd390>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdcee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdc0d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdedd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdec80>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdc730>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcde200>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdc3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcddf00>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdf1c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdc2b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdfb80>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcde7d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdf250>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdec50>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcddcc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdca60>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdcac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcde830>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdf220>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdf340>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdd5d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdf8e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdfd30>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdd900>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdce20>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdee60>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdcb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdc640>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcddc00>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdeb90>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdca00>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcddde0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdcbb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdd9c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcde0e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdd2a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdcfa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdc430>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdd720>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdcf40>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdd9f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdf0d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdc5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdc9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdda50>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdf3d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdc160>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdd000>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdf700>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdf8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdef50>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdd930>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcddb40>,
<nibabel.nifti1.Nifti1Image object at 0x7f351dcdc940>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b5570>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b66b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b7610>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b6d70>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b53c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b54e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b5d80>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b5f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b7880>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b7a00>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b7730>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b6aa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b6080>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b7460>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b5540>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b7490>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b77f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35123b4100>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb3130>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb30d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb1ab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb3e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb38b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb14b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb3100>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb0400>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb3c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb1e40>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb0a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb0940>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb14e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb0820>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511cb1c00>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d87c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d85b10>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d84c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d84d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d87d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d84e80>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d87c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d85f00>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d84c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d87cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ea890>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ead10>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e89a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb940>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eadd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9120>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ea2c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eac20>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e89d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ebdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ea830>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb790>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e83a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ea350>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e99f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9f90>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e90f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9690>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ea230>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9b10>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ea590>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eabc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9ed0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8730>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8700>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9a20>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ea9b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8850>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eba60>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb670>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9ff0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8760>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb040>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8370>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8fd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eace0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb490>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9000>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ebd00>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8130>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8430>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8250>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9900>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9420>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9300>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb130>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9840>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb100>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ea740>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb610>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e86d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ea0b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e9780>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ea800>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ebfa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e80d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ebfd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e8f40>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4e95d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ebca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb1f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb370>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4eb850>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ebe50>,
<nibabel.nifti1.Nifti1Image object at 0x7f351f4ea7a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e116560>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e116e90>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1166b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114130>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114700>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e115780>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1154b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114760>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1152d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114e80>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1144c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1158d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1143d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114190>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1161a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e116e30>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114370>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e116980>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e115a50>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114430>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1149a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e116aa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e115750>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117f40>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1143a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117250>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117340>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1167d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e116260>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1157e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e116dd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117970>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e115630>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1155a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e116c20>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114040>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117790>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1158a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1176d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e115ab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e116470>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e116620>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117880>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1142e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1177c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1159c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e115ae0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e115870>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1161d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e116fb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114670>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e117430>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e115c90>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e114bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f350e1167a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7308340>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309240>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730b760>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309300>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309360>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309990>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309900>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309420>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730bfd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f73099c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7308910>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730a8f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730a3b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309b10>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f73087f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f73094e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730b6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f73098a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730a410>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730a140>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730b8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309a80>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730b9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730bc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730bf70>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730b970>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f73082b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730a260>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7308bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7308520>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730aa70>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f73084c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7308430>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309ba0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f73095a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730b3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730a350>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7308280>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730bb80>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7308d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730b040>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730b8e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f73097b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309d20>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7308460>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f73094b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730af80>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730a860>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7308760>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730ab00>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309720>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7309cf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730bd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7308820>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730aa10>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f7308250>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730ba90>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730b280>,
<nibabel.nifti1.Nifti1Image object at 0x7f34f730b700>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebf130>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebd0c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebc310>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebffa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebd030>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebfcd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebfeb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebc250>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebf7f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebfac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebde10>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebf0d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebf580>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511ebfd30>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6a980>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e68340>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6bee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e689d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6b1f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6afb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6a890>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6bf70>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6ad40>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6b2e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6b340>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e692a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e690f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e691b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e697b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6aa10>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e695d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6ac50>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e69330>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511e6b9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511c56d70>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511c54070>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511c57c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511c55600>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511c57820>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511c575e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511c56ce0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511c56890>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511c57220>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512193340>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512191180>,
<nibabel.nifti1.Nifti1Image object at 0x7f35121909d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512191570>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512193640>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512190c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512191210>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512191780>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512190e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f35121931c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35121917b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512191660>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512191300>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512193b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512191ab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35121914e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512193fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35121934c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3512191360>,
<nibabel.nifti1.Nifti1Image object at 0x7f35121932b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d82d40>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d80c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d83190>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d83e80>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d83850>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d82e90>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d82020>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d82290>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d82c20>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d80730>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511d835e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f1c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8c280>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8d750>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8d0c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8c070>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8dea0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8cb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8e290>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8d360>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8c100>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f010>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8c160>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f040>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8e440>,
<nibabel.nifti1.Nifti1Image object at 0x7f352fe2e860>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511f4a020>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511f4b190>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511f4a0e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f3511f481f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f310>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8ec20>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f2e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8c460>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8ecb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8fa00>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8dcf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f250>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8c910>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8dab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8e770>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f490>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8eb00>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f430>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8eb60>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8edd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8c850>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8fd30>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8dd20>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8d090>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8d3c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8d930>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8cdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8c4c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8f670>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8d5d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8cbb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8fc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8fb20>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8e500>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8eec0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8d6c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8e590>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8ca30>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8ea10>,
<nibabel.nifti1.Nifti1Image object at 0x7f34e7d8c2b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bcc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bef80>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bf0d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bf4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bea70>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bcf40>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bcaf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bc190>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bdab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bc220>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bc670>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bcdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bd990>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bded0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bfa30>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bfe50>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bfb80>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bd690>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398be3b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bc7c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bfb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bc340>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398be170>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398beef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398be5f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398be260>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bdde0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bdd80>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bff70>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398be050>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bc8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bda50>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bcfa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bd390>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bd720>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bd780>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bf310>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bd000>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bcdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bea40>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bc910>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bcd90>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398be440>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398be650>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bd9f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bd300>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bed70>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bf220>,
<nibabel.nifti1.Nifti1Image object at 0x7f35398bee00>]
[FREMRegressor.fit] Computing mask
[FREMRegressor.fit] Resampling mask
[FREMRegressor.fit] Finished fit
[FREMRegressor.fit] Loading data from <nibabel.nifti1.Nifti1Image object at
0x7f3511f48850>
[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.
  frem.fit(zmap_filenames, behavioral_target)
[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)]: Using backend SequentialBackend with 1 concurrent workers.
[Parallel(n_jobs=1)]: Done   1 out of   1 | elapsed:    2.0s remaining:    0.0s
[Parallel(n_jobs=1)]: Done  10 out of  10 | elapsed:   18.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()
plot mixed gambles frem

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 27.903 seconds)

Estimated memory usage: 3081 MB

Gallery generated by Sphinx-Gallery