meeg_utils.steps.Baseline#
- class meeg_utils.steps.Baseline(baseline=(None, 0.0), mode='mean', *, scale='epoch', max_std_error=0.1)[source]#
Baseline correction of epochs or evoked data.
- Parameters:
baseline (tuple) – Baseline interval
(start, end)in seconds;Nonemeans the start or end of the epoch.mode ({"mean", "ratio", "logratio", "percent", "zscore", "zlogratio"}) –
"mean"subtracts the baseline mean (mne.Epochs.apply_baseline()); the others aremne.baseline.rescale().scale ({"epoch", "pooled"}) – For
"zscore": divide by each epoch’s own baseline standard deviation (MNE), or by the standard deviation of the baseline pooled over all epochs (per channel), which is far more precise for short baselines.max_std_error (float) – Per-epoch z-scoring is refused when the baseline is too short to estimate a standard deviation: with n samples its relative standard error is about
1 / sqrt(2 (n - 1))(for Gaussian noise). The default, 10 %, requires at least 51 samples.
Methods
__init__([baseline, mode, scale, max_std_error])fit(inst[, y, system])Learn the step's state from the data.
fit_transform(inst[, y, system, copy])Fit the step on the data and transform the same data.
get_metadata_routing()Get metadata routing of this object.
get_params([deep])Get parameters for this estimator.
plot([kind, inst])Draw quality-control figures.
set_fit_request(*[, inst, system])Configure whether metadata should be requested to be passed to the
fitmethod.set_params(**params)Set the parameters of this estimator.
set_transform_request(*[, copy, inst])Configure whether metadata should be requested to be passed to the
transformmethod.transform(inst, *[, copy])Apply the fitted step to the data.
Attributes
Data types the step accepts.
adds_annotationsWhether the step may add
BAD_annotations (existing ones are kept).changes_channelsWhether the step may add, drop or reorder channels.
changes_timesWhether the step may change the time axis (e.g. resampling, cropping).
drops_epochsWhether the step may drop epochs (e.g. artifact rejection).
plot_kindskind -> whether it needs data (
inst).returnsData type the step returns;
Nonemeans the same type as its input.systemsAcquisition systems the step applies to;
Nonemeans all systems.