braindecode.preprocessing.AnnotateNan#

class braindecode.preprocessing.AnnotateNan(*, verbose=None)[source]#

Braindecode preprocessor wrapper for annotate_nan().

Detect segments with NaN and return a new Annotations instance.

Parameters:
rawinstance of Raw

Data to find segments with NaN values.

verbosebool | str | int | None

Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

Returns:
annotinstance of Annotations

New channel-specific annotations for the data.

Methods

fn(*, verbose=None)[source]#

Detect segments with NaN and return a new Annotations instance.

Parameters:
  • raw (instance of Raw) – Data to find segments with NaN values.

  • verbose (bool | str | int | None) – Control verbosity of the logging output. If None, use the default verbosity level. See the logging documentation and mne.verbose() for details. Should only be passed as a keyword argument.

Returns:

annot – New channel-specific annotations for the data.

Return type:

instance of Annotations