Note
Go to the end to download the full example code. or to run this example in your browser via Binder
FREM on Jimura et al “mixed gambles” dataset¶
In this example, we use fast ensembling of regularized models (FREM) to solve a regression problem, predicting the gain level corresponding to each beta maps regressed from mixed gambles experiment. FREM uses an implicit spatial regularization through fast clustering and aggregates a high number of estimators trained on various splits of the training set, thus returning a very robust decoder at a lower computational cost than other spatially regularized methods.
To have more details, see: FREM: fast ensembling of regularized models for robust decoding.
See the dataset description for more information on the data used in this example.
Load the data from the Jimura mixed-gamble experiment¶
from nilearn.datasets import fetch_mixed_gambles
data = fetch_mixed_gambles(n_subjects=16)
zmap_filenames = data.zmaps
behavioral_target = data.gain.to_numpy().ravel()
mask_filename = data.mask_img
[fetch_mixed_gambles] Dataset created in
/home/runner/nilearn_data/jimura_poldrack_2012_zmaps
[fetch_mixed_gambles] Downloading data from
https://www.nitrc.org/frs/download.php/7229/jimura_poldrack_2012_zmaps.zip ...
[fetch_mixed_gambles] ...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
0x7f1175760dc0>, <nibabel.nifti1.Nifti1Image object at 0x7f11757607f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175761f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175762050>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175760a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175762710>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175760400>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175762ef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175761150>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175760ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175761660>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175763b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175763670>,
<nibabel.nifti1.Nifti1Image object at 0x7f11757634f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f11757632b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175762740>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175763fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f11757636a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f11757626b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175763ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f11757621d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175762620>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175760340>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175763d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175762080>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175760670>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175760160>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175760f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175760f40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175762e30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175760b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f11757618d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175763010>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175760b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175763b50>,
<nibabel.nifti1.Nifti1Image object at 0x7f11757627d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175763bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f11757614b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175761c00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175760be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175762650>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175763580>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175763640>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e449060>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e44a4a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e449630>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e448eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e44a200>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e449270>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e449fc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e44a080>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e44a410>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e44a5f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e44ab00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e73a620>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e44ae60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e83f220>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e44a710>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e83d870>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e73a860>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e559360>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5583d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e55a6b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e55abc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e558220>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5583a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e559ff0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e55a8f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e559c60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e55a860>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5afb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5afa00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5affd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5afa30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5af9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5ad960>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5afeb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5afc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5afbb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5afac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969e70>,
<nibabel.nifti1.Nifti1Image object at 0x7f11759690f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969930>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969e40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969450>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a170>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968850>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596abc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969f00>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596bca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969690>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596be80>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a6e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a080>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968040>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596b160>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596afe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a5f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969480>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a1a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968760>,
<nibabel.nifti1.Nifti1Image object at 0x7f11759697e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596aa10>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596af20>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596bb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a830>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968130>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969120>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596b9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596b7c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596ad40>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a140>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596b4f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f11759691b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969810>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596bc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968880>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a2f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596aef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596ba90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969f30>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596b490>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969420>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968520>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596b940>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175968d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f11759686d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a380>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596b190>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596ab00>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a710>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596b970>,
<nibabel.nifti1.Nifti1Image object at 0x7f11759687f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a620>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596b3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969900>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969360>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a980>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175969ba0>,
<nibabel.nifti1.Nifti1Image object at 0x7f117596a770>,
<nibabel.nifti1.Nifti1Image object at 0x7f11759688e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81e680>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81c370>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81c160>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81f070>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81e080>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81cd30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81e440>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81f3d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81c910>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81c8b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81c310>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81d9f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e81e4a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e98a230>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e989000>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e988130>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e988820>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e988880>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a8c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80b550>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80b9d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80b8e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80bc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f8089a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a980>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808220>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808850>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80b910>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a350>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f8083d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a380>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80be80>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f8099c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80b610>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80bca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f809a50>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f809a80>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a200>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80ada0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80add0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f809300>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a440>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808250>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a500>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a050>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a260>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80af80>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80bd30>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808700>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80b640>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80b6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80b220>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f809960>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80b190>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80aef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f809150>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808790>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808520>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f809030>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f809480>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80b160>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808370>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f809570>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a590>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f808430>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f809c30>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80b9a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a170>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80bc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f8080a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f8087c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80a6b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f8096f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80ab60>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f809e70>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f8081c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80bf70>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f80bf40>,
<nibabel.nifti1.Nifti1Image object at 0x7f111f809fc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38970>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3a6e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38a60>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3bf40>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38430>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3add0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3b910>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc392d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc39c60>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38070>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc393f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38370>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3bca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3ba00>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc385e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3b310>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3b5e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc39390>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc381f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc39ff0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3bc40>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3a2f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc384f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3aec0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3b520>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3a650>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc39690>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3b130>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3ab90>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3bdc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc39630>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3ab00>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc398a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc39870>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc39600>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38760>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3bb20>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38850>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3b7f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc382e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38490>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3ac50>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3b2b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3abc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3b490>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc39d50>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3a170>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3a6b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc39cc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3b970>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38790>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38640>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38130>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc396c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc398d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3afb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3b250>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e5f6110>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e55e3b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc3a950>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc39bd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38520>,
<nibabel.nifti1.Nifti1Image object at 0x7f115bc38670>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e391e40>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e392470>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e391cc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e391ff0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e391f30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e3923b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38f520>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38ce50>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38ce20>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38e770>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38c100>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38c3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38e020>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38fe50>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38dc00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38dcc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38e320>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e38cbe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f116c67dfc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f116c67df90>,
<nibabel.nifti1.Nifti1Image object at 0x7f116c67e2f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f116c67e080>,
<nibabel.nifti1.Nifti1Image object at 0x7f116c67e2c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2ff1c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2ff430>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2fcd00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2ff0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2fe5c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2fe860>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2fca60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2ff100>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d7730>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d4820>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d47c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d4ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d4c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d5f90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d4d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d4d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d4b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d7910>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d4c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4d6080>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7ab400>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7aad40>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7ab160>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7aaef0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7a8520>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e6b9c00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7a8790>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e6b9b10>,
<nibabel.nifti1.Nifti1Image object at 0x7f116beb5480>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7a9f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e9927d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e6aa7d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e993490>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e6a8d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e6a9ba0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e847070>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e3b72b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e3b75b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e3b77c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e3b7e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e226ce0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e226740>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2251e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2254b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e226b00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2248e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2279d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e225150>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e226da0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e225480>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e226200>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2271c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7ef400>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7eee90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7ec0a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7ee080>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7ef1c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7ed6f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7ed570>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7ed660>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7ed4e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7ee020>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4eed40>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4ee8f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4ee2c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4ee6b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4ede10>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4ef3d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4ede40>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4ee830>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4ee8c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8e6740>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8e6380>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8e4e80>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8e7580>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8e5990>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8e7c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e753df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e750850>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e750d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7512d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8780d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e878070>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e878460>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e878040>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e476980>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e477820>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e477ac0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4778e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e474d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e477d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4756f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4767a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4755d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e475660>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e476530>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4766e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e474d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e476680>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e476cb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e476f50>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e477880>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4759c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f08b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f3fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f0d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f1420>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f1f30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f0bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f3940>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f1ed0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f13f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f20b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f1960>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f1210>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f09a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f3850>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f0d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f2860>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f1270>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f3880>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f1f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f0c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e2f1930>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e019f00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01a950>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01a1a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e0189a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01b730>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e018100>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e018610>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01bc70>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01a5c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e018fa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e018f10>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01a350>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e018880>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e0199c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01bf40>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e019f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e018d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e018e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01a590>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01b820>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e019780>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e0182e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01b5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e018640>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e018dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e019f30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e018040>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e0187f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e019300>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01bc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01a500>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e0190f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01a9b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e01bb50>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e9528c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e952e90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e952740>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e951f90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e952c50>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e953490>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e952ad0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e953bb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e951cc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e951c60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e9517b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e952350>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e952770>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e9539d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e953a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e952200>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e951c90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e952b90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e953310>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e9532b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e952c20>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e953d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e952ce0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e953880>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e953af0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e9529e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e951ed0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e951780>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e416e00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e415f60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4164d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e415c00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e415ed0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e4144c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fe7a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1feb90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fe260>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fdff0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fe860>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fe350>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fecb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fe890>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fe440>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fe680>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fe740>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fdab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e1fe4d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e34a0b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e34ba00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e34afe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e348a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e349660>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e3483a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e349e40>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e349180>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e34bb20>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e3493f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e349ab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e34b700>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e349f90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e3495d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e3495a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e3498a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89f640>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89d7e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89fbb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89c280>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89da50>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89f250>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89f070>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89e1d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89f310>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89f730>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89d720>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89cbb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89d540>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89fa90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89d300>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89c040>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89fc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e89f2e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3e20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf1690>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0d00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3d60>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf2890>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf1120>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf2950>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0ee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf31c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3760>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf33d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf2740>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf2f20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf1630>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf29b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3820>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf03a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf38b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf2770>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3b80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf06a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3430>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf1300>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf1de0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf15d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0730>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf00a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3070>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf12d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf2e90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf1e70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf2980>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3850>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf27d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf2e00>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf11b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3400>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0e80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf1180>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf2710>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf11e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf20e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0880>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf1390>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf1270>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3550>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf06d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf24a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf37f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0f40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3c70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf0370>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf3dc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1145cf1900>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62d70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62ec0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b613c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b63f70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b63160>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b638b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b61ab0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b632e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b604f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b60a30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b61b40>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b61b70>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b60640>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b63be0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b63c10>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b61540>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b61210>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b610c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b61de0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b63d90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62fe0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62c20>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b633d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b60820>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b60cd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62440>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b60df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62920>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b630a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62c80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62650>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b63190>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b63910>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b605b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b63ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b616c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b63e80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b624d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b61060>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b631c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62140>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62230>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b602e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b60e50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b604c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b60670>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b63eb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b621a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b615d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b60a90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b60400>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b607c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62b30>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b60e80>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b637c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f11757633d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e7b4610>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175762c50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175763df0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175762f50>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62110>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b605e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b630d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b618a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b63490>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62290>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b62e90>,
<nibabel.nifti1.Nifti1Image object at 0x7f1175b61630>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8a8d30>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8aabc0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8a92a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8ab6d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8ab910>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8a8b20>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8aab00>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8aab60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8ab3a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8abdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e8a8190>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63ca30>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63d7e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63d5a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63dc00>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e200>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63cc70>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63c6a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63d8d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63eaa0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63c070>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e320>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63f070>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63f790>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63d2a0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63df00>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e530>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63fb20>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e4d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63dc60>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63c190>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63d9c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63d840>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63caf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e980>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63c370>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63ccd0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e9b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63f640>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63feb0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63d990>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63f670>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63d810>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63f5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e8f0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63dcf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63cdf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e230>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63c5b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63eec0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63fee0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e950>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e590>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63cd00>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63d420>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63f310>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e0b0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63f550>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63c490>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63dba0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63cc10>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63c280>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e860>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e9e0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63e140>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63f040>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63dd50>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63eda0>,
<nibabel.nifti1.Nifti1Image object at 0x7f115c63c520>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e608c40>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e609c90>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e608ca0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e6083d0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e60baf0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e609de0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e6081c0>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e60bf10>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e609c60>,
<nibabel.nifti1.Nifti1Image object at 0x7f114e609660>]
[FREMRegressor.fit] Computing mask
[FREMRegressor.fit] Resampling mask
[FREMRegressor.fit] Finished fit
[FREMRegressor.fit] Loading data from <nibabel.nifti1.Nifti1Image object at
0x7f115bf38ee0>
[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: 1.9s remaining: 0.0s
[Parallel(n_jobs=1)]: Done 10 out of 10 | elapsed: 18.4s finished
[FREMRegressor.fit] Computing image from signals
[FREMRegressor.fit] Computing image from signals
Visualize FREM weights¶
from nilearn.plotting import plot_stat_map, show
plot_stat_map(
frem.coef_img_["beta"],
title="FREM",
display_mode="yz",
cut_coords=[20, -2],
threshold=0.2,
)
show()

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 29.420 seconds)
Estimated memory usage: 2960 MB