mne_icalabel.label_components#

mne_icalabel.label_components(inst, ica, method)[source]#

Automatically label the ICA components with the selected method.

Parameters:
instRaw | Epochs

The data instance used to fit the ICA instance.

icaICA

The fitted ICA instance.

methodstr

The proposed method for labeling components. Must be one of: 'iclabel'.

Returns:
component_dictdict

A dictionary with the following fields:

  • ‘y_pred_proba’array of shape (n_components,)

    Estimated predicted probability of the output class for each independent component.

  • ‘labels’: list of shape (n_components,)

    The corresponding string label of each class in ‘y_pred’.

Notes

Please refer to the following function for additional information on each method:

Examples using mne_icalabel.label_components#

Repairing artifacts with ICA automatically using ICLabel Model

Repairing artifacts with ICA automatically using ICLabel Model