eegdash.features.extractors#
Classes
|
A feature kind for operations on pairs of channels. |
|
A feature kind for directed operations on pairs of channels. |
|
A composite feature extractor that applies multiple feature functions. |
A mixin for features that operate on multiple channels. |
|
Abstract base class for features that require training. |
|
A feature kind for operations applied to each channel independently. |
- class eegdash.features.extractors.BivariateFeature(*args, channel_pair_format: str = '{}<>{}')[source]#
Bases:
MultivariateFeature
A feature kind for operations on pairs of channels.
- Parameters:
channel_pair_format (str, default="{}<>{}") – A format string used to create feature names from pairs of channel names.
- class eegdash.features.extractors.DirectedBivariateFeature(*args, channel_pair_format: str = '{}<>{}')[source]#
Bases:
BivariateFeature
A feature kind for directed operations on pairs of channels.
- class eegdash.features.extractors.FeatureExtractor(feature_extractors: Dict[str, Callable], **preprocess_kwargs: Dict)[source]#
Bases:
TrainableFeature
A composite feature extractor that applies multiple feature functions.
This class orchestrates the application of a dictionary of feature extraction functions to input data. It can handle nested extractors, pre-processing, and trainable features.
- Parameters:
feature_extractors (dict[str, callable]) – A dictionary where keys are feature names and values are the feature extraction functions or other FeatureExtractor instances.
**preprocess_kwargs – Keyword arguments to be passed to the preprocess method.
- class eegdash.features.extractors.MultivariateFeature[source]#
Bases:
object
A mixin for features that operate on multiple channels.
This class provides a __call__ method that converts a feature array into a dictionary with named features, where names are derived from channel names.
- class eegdash.features.extractors.TrainableFeature[source]#
Bases:
ABC
Abstract base class for features that require training.
This ABC defines the interface for feature extractors that need to be fitted on data before they can be used. It includes methods for fitting the feature extractor and for resetting its state.
- class eegdash.features.extractors.UnivariateFeature[source]#
Bases:
MultivariateFeature
A feature kind for operations applied to each channel independently.