autoreject.validation_curve

autoreject.validation_curve(epochs, y=None, param_name='thresh', param_range=None, cv=None, return_param_range=False, n_jobs=1)[source]

Validation curve on epochs for global autoreject.

Parameters
epochsinstance of mne.Epochs.

The epochs.

yarray | None

The labels.

param_namestr

Name of the parameter that will be varied. Defaults to ‘thresh’.

param_rangearray | None

The values of the parameter that will be evaluated. If None, 15 values between the min and the max threshold will be tested.

cvint, cross-validation generator or an iterable, optional

Determines the cross-validation strategy.

return_param_rangebool

If True the used param_range is returned. Defaults to False.

n_jobsint

The number of thresholds to compute in parallel.

Returns
train_scoresarray

The scores in the training set

test_scoresarray

The scores in the test set

param_rangearray

The thresholds used to build the validation curve. Only returned if return_param_range is True.

Fork me on GitHub