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
0x7f0fe994f040>, <nibabel.nifti1.Nifti1Image object at 0x7f0fe994c670>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994ec20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994f0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994e950>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994f910>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994e860>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994cbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994fd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994cd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994e920>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994ed10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994d030>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994c130>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994de40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994d9c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994e740>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994ebf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994e6b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994ef50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994ee00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994cd90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994c790>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994ff10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994f5e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994f520>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994c160>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994da20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994f1c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994d960>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994f790>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994f0d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edbb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed9d20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7eda9b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed9ea0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8880>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7eda860>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edba30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed93c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed9960>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed94b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edb070>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed81f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed86a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed9e40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edb6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edb460>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7eda080>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed9870>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed89a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed91b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7eda050>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7eda2c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edaad0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed9a50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed9ed0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edaec0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edab60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8700>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edb400>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8370>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7eda440>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed9d80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7eda230>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edbbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8640>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8310>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed9ae0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed9480>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edbb20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edb580>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edb370>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edac80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed99f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed91e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8fd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edbc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8f40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edada0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8970>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edba00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7eda530>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edaef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed96c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed9780>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edabf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edb760>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7edad40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed82b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7ed8d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d2620>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d0ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d3bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d10f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d1210>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d23b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d3eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d2dd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d0d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d29e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d3190>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d2530>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d2d40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d1600>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d1450>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d1030>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d3340>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d35b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d3b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc55d27a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7970>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5330>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5ff0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b4a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b58a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7610>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6e00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b60e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5540>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b4b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b45e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6f20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b4220>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7040>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b46a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5960>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6290>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7340>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b4610>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6980>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7700>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6f80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5510>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5e40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b71f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6e60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b4e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b4790>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b64d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6650>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6bc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5360>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5810>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b45b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6c50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7550>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7640>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b76a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b54e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b55a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b4b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5720>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6230>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b4a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5900>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b61d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7370>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6950>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b4190>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6020>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b4d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6ad0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5690>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b59f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b66e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc579ea10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5b40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b5660>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b6a40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94b7820>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe8198eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe819bac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe819a1a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe81981f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5b0ce80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5b0e530>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5b0cf40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5b0c6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5b0e6b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5b0e1a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a9ac50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a98a00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a9b3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a9b7c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a98df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a9aef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a996c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a98e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a991b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a996f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe5d14af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5eff790>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a9b970>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a99510>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a99000>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9791fc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9792230>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe97924d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9790b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7d33910>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7d33760>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7d30c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7d33dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7d31090>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7a2af20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe818eda0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc56fa3b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc56fa980>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc56f9930>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc58332b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5833b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5832470>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5830b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc58335b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5831600>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc58316c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5833520>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7d356c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5832fe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5831540>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc58328c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc592d4b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc592f730>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc592f550>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc592e470>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc592fdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc592fac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5bfdab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc592e380>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5bfdc30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5bfd9c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782aef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7828370>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829330>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7828c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782bc70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829750>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe78294e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe78282b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829ed0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782b250>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782be80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782a770>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829ff0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782b730>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782a020>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe78296c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782b9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7828760>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7828f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782b130>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7828b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782a3e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829390>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782b160>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7828580>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7828af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe78284c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782ada0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829de0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782a050>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe78282e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7828910>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe78292d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782b5e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829cf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829480>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe78280d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829540>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe78285b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829d80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782b310>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782a7d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7828100>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe78288e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782b6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782b1c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782ba00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782a3b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829bd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829300>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7829150>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7828490>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782a470>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782a800>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782a890>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782b190>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782beb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7828460>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe782bc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe65db2e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe65db250>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe65db1c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc59aeec0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe65db0d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc59ae080>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe65db280>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5b7f730>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5fffdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5fff760>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5b7f550>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5b7cdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc56660e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc56659c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5667790>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5664880>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc56662f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc56649a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5665f90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5664d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5666350>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc56657b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5666da0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5664550>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5667a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5667070>,
<nibabel.nifti1.Nifti1Image object at 0x7f0ff6214160>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5664c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc56661d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc56645b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5666c80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d4dff0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d4d840>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d4f610>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d4fb80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d4ff40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d4e530>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d4fb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d4e590>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d4d4b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd6382b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd639690>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd639ba0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd639480>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63a530>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63b520>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63ab90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63a1a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd639de0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd638490>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd639000>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd638ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63be20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63a920>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63b9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63bd00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63ae60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd6391b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63ada0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd638070>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63bd60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63b6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63acb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63b490>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd638e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd639360>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd639630>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63ad40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd638400>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd638130>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd638100>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd6382e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd638cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63b130>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63a470>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd638c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd6390f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd639450>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63b7c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd639210>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63bc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63a5f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63ba60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63a6e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63a950>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcd63b7f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98e9b10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98ebb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98eac20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98e8f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98e97b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98eb580>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98ea050>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98eb640>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98eb460>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98e9960>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98e9090>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98eb760>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98e9240>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98eb5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98e81f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98e9570>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98e8eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98e9060>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98ea620>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98eb6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98ea770>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe98e9330>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d23ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d231c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d23b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d20190>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d21d50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d20430>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d23e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d22b90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d201f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d205e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d234f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d20100>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7d1fa60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d20ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7d1fc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5d226b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309ba0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309510>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe93082e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9308fd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930a290>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9308310>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe93098a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9308ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930b1c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309fc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309db0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930b340>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930a4a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930a7a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930b550>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930bf70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309d50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930b6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930aef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930a620>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930b910>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930ab30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930bc70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930b160>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930a530>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309720>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9308490>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309a20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9308220>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9308190>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309840>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930a9b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9308d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930aa70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930add0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe93097b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9308520>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9308dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309690>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309cc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309f00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309e10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930abf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930a890>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930a350>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930a6e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930b8e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309150>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930b700>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930ae30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309e70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7dedf90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7dec160>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe930be20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe9309930>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa1570>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa3730>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa39d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa2560>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa0c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa34f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa0fd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa0be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa17b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa0b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa3bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa1600>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa36d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa3190>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa2e30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa3340>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa1690>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa0e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa35e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa03d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa16c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa2f50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa09a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa13f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa3580>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa3550>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa3070>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa0cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7fa1b10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb78310>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b940>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb786a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b2e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a4a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb798d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a530>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb78b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79480>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79210>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b640>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b4c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a6e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7ada0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b5e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a950>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7bc70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb785e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb793c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb799f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b340>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb78610>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7ace0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a800>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a350>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79f30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7aaa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb78670>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7bd30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7add0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb78760>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb78820>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79cf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b070>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79cc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb78850>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b460>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb78490>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b820>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb787f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79720>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79930>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79510>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a0b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b970>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb796f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb78190>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a860>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79990>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7bc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb784c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a080>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a140>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7ab00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7bdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7b250>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7ae60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a9b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7a170>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb790c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79ea0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb7bac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcbb79bd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1e70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e16c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e14b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e08e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e0c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e3310>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e2260>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e28f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1780>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e0220>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e3e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1570>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e09a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e3370>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e2560>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1390>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e0bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e3340>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e3490>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e27d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e36a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e0a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e0fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e3ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1030>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e3b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e33a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e38b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1a20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e2020>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1240>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e2e00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e2950>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e0c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1e10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e35b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e01c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e3b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e3430>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e2860>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1ba0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e3910>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1c30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e12a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1b10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e0160>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1600>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e12d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e1f30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e0250>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e06d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e0490>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e37c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e24a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e2500>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cfbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cfeb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cda20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ce110>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ccc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cec20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf730>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cc580>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cc610>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cd6c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ced70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cdb70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cff70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ceda0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cdfc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cedd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf490>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cc940>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ceb60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf820>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cdc90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ccc70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf100>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ce6e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cca00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cc070>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cfa90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ceb90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cc5e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf310>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ccbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cc8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ccdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ce920>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ccd90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cd030>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ce800>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf2e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf070>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cc700>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf010>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994ece0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994ee90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994e980>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994e230>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe994fca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cfb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ce350>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cc4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ccc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cc0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cceb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf700>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cc910>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cf580>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ceaa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cc1f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cd3f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cfaf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cece0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94ceec0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cce20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cfc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cfca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe94cec50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a529b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a53b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a53a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a50b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a52020>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a52860>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a53be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a53af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a50190>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6c850>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6e860>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6e560>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6c790>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6f010>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6e2f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6ca60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6e950>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6cdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6ea70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6c400>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6f100>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6c430>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6cc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcc5c29b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe95102b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcc5c3400>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c6ea10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fcc5c30a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c5dc60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c5fd90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5c5e110>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e7ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e6cb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e58a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe77e40a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5573910>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5570820>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5573c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5571060>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5570b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5570af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5573a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a03f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a03cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a003d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a01ff0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a00c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a03a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a03e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a03880>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a003a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a020e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a01960>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a03820>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a000d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a01450>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a03370>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a00400>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a039a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a03e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fc5a01db0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7de8d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7deb7f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7de8a00>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7dea590>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7deb610>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7de91e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f0fe7de9750>]
[FREMRegressor.fit] Computing mask
[FREMRegressor.fit] Resampling mask
[FREMRegressor.fit] Finished fit
[FREMRegressor.fit] Loading data from <nibabel.nifti1.Nifti1Image object at
0x7f0fe7dbc5e0>
[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)]: Done  10 out of  10 | elapsed:   17.1s 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
  show()

We can observe that the coefficients map learnt by FREM is structured, due to the spatial regularity imposed by working on clusters and model ensembling. Although these maps have been thresholded for display, they are not sparse (i.e. almost all voxels have non-zero coefficients).

See also

other example using FREM, and related section of user guide.

Example use of TV-L1 SpaceNet

SpaceNet is another method available in Nilearn to decode with spatially sparse models. Depending on the penalty that is used, it yields either very structured maps (TV-L1) or unstructured maps (graph_net). Because of their heavy computational costs, these methods are not demonstrated on this example but you can try them easily if you have a few minutes. Example code is included below.

from nilearn.decoding import SpaceNetRegressor

# We use the regressor object since the task is to predict a continuous
# variable (gain of the gamble).

tv_l1 = SpaceNetRegressor(
    mask=mask_filename,
    penalty="tv-l1",
    eps=1e-1,  # prefer large alphas
    memory="nilearn_cache",
    n_jobs=2,
    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 26.779 seconds)

Estimated memory usage: 2611 MB

Gallery generated by Sphinx-Gallery