nimare.base
.Decoder
- class Decoder[source]
Bases:
nimare.base.NiMAREBase
Base class for decoders in
nimare.decode
.New in version 0.0.3.
- fit(dataset, drop_invalid=True)[source]
Fit Decoder to Dataset.
- Parameters
dataset (
nimare.dataset.Dataset
) – Dataset object to analyze.drop_invalid (
bool
, optional) – Whether to automatically ignore any studies without the required data or not. Default is True.
- Returns
nimare.results.MetaResult
– Results of Decoder fitting.
Notes
The
fit
method is a light wrapper that runs input validation and preprocessing before fitting the actual model. Decoders’ individual “fitting” methods are implemented as_fit
, although users should callfit
.Selection of features based on requested features and feature group is performed in
Decoder._preprocess_input
.