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:
MultivariateFeatureA 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:
BivariateFeatureA feature kind for directed operations on pairs of channels.
- class eegdash.features.extractors.FeatureExtractor(feature_extractors: Dict[str, Callable], preprocessor: Callable | None = None)[source]#
Bases:
TrainableFeatureA 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.
preprocessor – A shared preprocessing function for all child feature extraction functions.
- class eegdash.features.extractors.MultivariateFeature[source]#
Bases:
objectA 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:
ABCAbstract 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:
MultivariateFeatureA feature kind for operations applied to each channel independently.