Efficiently find n_interpolate and consensus.
Note
AutoReject by design supports multiple channels. If no picks are passed, separate solutions will be computed for each channel type and internally combined. This then readily supports cleaning unseen epochs from the different channel types used during fit.
array
| None
The values to try for the number of channels for which to interpolate. This is \(\\rho\). If None, defaults to np.array([1, 4, 32])
array
| None
The values to try for percentage of channels that must agree as a fraction of the total number of channels. This sets \(\\kappa/Q\). If None, defaults to np.linspace(0, 1.0, 11)
a
scikit-learn cross-validation object
Defaults to cv=10
str
| list
| slice
| None
Channels to include. Slices and lists of integers will be interpreted
as channel indices. In lists, channel type strings (e.g.,
['meg', 'eeg']
) will pick channels of those types, channel name
strings (e.g., ['MEG0111', 'MEG2623']
will pick the given channels.
Can also be the string values 'all'
to pick all channels, or
'data'
to pick data channels. None (default) will pick data
channels {‘meg’, ‘eeg’}, which will lead fitting and combining
autoreject solutions across these channel types. Note that channels in
info['bads']
will be included if their names or indices are
explicitly provided.
str
‘bayesian_optimization’ or ‘random_search’
int
The number of jobs.
int
seed
, RandomState
instance
, or
None
(default
)The seed of the pseudo random number generator to use.
The verbosity of progress messages. If False, suppress all output messages.
list
The instances of _AutoReject for each channel type.
dict
The sensor-level thresholds with channel names as keys and the peak-to-peak thresholds as the values.
dict
of
array
, shape
(len
(n_interpolate
), len
(consensus
))The cross validation error for different parameter values.
dict
The estimated consensus per channel type.
dict
The estimated n_interpolate per channel type.
shape
(n_data_channels,)The data channels considered by autoreject. By default only data channels, not already marked as bads are considered.
Init it.
Methods
|
Init it. |
|
Fit the epochs on the AutoReject object. |
|
Estimate the rejection params and finds bad epochs. |
|
Get rejection logs of epochs. |
|
Save autoreject object with the HDF5 format. |
|
Remove bad epochs, repairs sensors and returns clean epochs. |