Note
This page is a reference documentation. It only explains the function signature, and not how to use it. Please refer to the user guide for the big picture.
nilearn.datasets.fetch_mixed_gambles¶
- nilearn.datasets.fetch_mixed_gambles(n_subjects=1, data_dir=None, url=None, resume=True, return_raw_data=False, verbose=1)[source]¶
Fetch Jimura “mixed gambles” dataset.
See Jimura and Poldrack[1].
- Parameters:
- n_subjects
int
, default=1 The number of subjects to load. If
None
is given, all the subjects are used.- data_dir
pathlib.Path
orstr
, optional Path where data should be downloaded. By default, files are downloaded in a
nilearn_data
folder in the home directory of the user. See alsonilearn.datasets.utils.get_data_dirs
.- url
str
, default=None URL of file to download. Override download URL. Used for test only (or if you setup a mirror of the data).
- resume
bool
, default=True Whether to resume download of a partly-downloaded file.
- verbose
int
, default=1 Verbosity level (0 means no message).
- return_raw_data
bool
, default=False If
False
, then the data will transformed into an(X, y)
pair, suitable for machine learning routines.X
is a list ofn_subjects * 48
Nifti1Image
objects (where 48 is the number of trials), andy
is an array of shape(n_subjects * 48,)
.
- n_subjects
- Returns:
- data
Bunch
Dictionary-like object, the attributes of interest are:
‘zmaps’:
list
ofstr
Paths to realigned gain betamaps (one nifti per subject).‘gain’:
list
ofNifti1Image
orNone
Ifmake_Xy
isTrue
, this is a list ofn_subjects * 48
Nifti1Image
objects, else it isNone
.‘y’:
ndarray
of shape(n_subjects * 48,)
orNone
Ifmake_Xy
isTrue
, then this is andarray
of shape(n_subjects * 48,)
, else it isNone
.‘description’: data description
- data
References
Examples using nilearn.datasets.fetch_mixed_gambles
¶
FREM on Jimura et al “mixed gambles” dataset