autoreject.get_rejection_threshold

autoreject.get_rejection_threshold(epochs, decim=1, random_state=None, ch_types=None, cv=5, verbose=True)[source]

Compute global rejection thresholds.

Parameters
epochsmne.Epochs object

The epochs from which to estimate the epochs dictionary

decimint

The decimation factor: Increment for selecting every nth time slice.

random_stateint seed, RandomState instance, or None (default)

The seed of the pseudo random number generator to use.

ch_typesstr | list of str | None

The channel types for which to find the rejection dictionary. e.g., [‘mag’, ‘grad’]. If None, the rejection dictionary will have keys [‘mag’, ‘grad’, ‘eeg’, ‘eog’].

cvint

The number of folds used. Defaults to 5.

verbosebool

If False, suppress all output messages.

Returns
rejectdict

The rejection dictionary with keys as specified by ch_types.

Fork me on GitHub