autoreject.compute_thresholds

autoreject.compute_thresholds(epochs, method='bayesian_optimization', random_state=None, picks=None, augment=True, verbose='progressbar', n_jobs=1)

Compute thresholds for each channel.

Parameters:

epochs : instance of mne.Epochs

The epochs objects whose thresholds must be computed.

method : str

‘bayesian_optimization’ or ‘random_search’

random_state : int seed, RandomState instance, or None (default)

The seed of the pseudo random number generator to use

picks : ndarray, shape(n_channels,) | None

The channels to be considered for autoreject. If None, defaults to data channels {‘meg’, ‘eeg’}.

augment : boolean

Whether to augment the data or not. By default it is True, but set it to False, if the channel locations are not available.

verbose : ‘tqdm’, ‘tqdm_notebook’, ‘progressbar’ or False

The verbosity of progress messages. If ‘progressbar’, use mne.utils.ProgressBar. If ‘tqdm’, use tqdm.tqdm. If ‘tqdm_notebook’, use tqdm.tqdm_notebook. If False, suppress all output messages.

Examples

For example, we can compute the channel-level thresholds for all the EEG sensors this way:

>>> compute_thresholds(epochs)
Fork me on GitHub