eegdash.features.feature_bank.csp module#

class eegdash.features.feature_bank.csp.CommonSpatialPattern[source]

Bases: TrainableFeature

clear()[source]

Reset the internal state of the feature extractor.

feature_kind = <eegdash.features.extractors.MultivariateFeature object>
fit()[source]

Finalize the training of the feature extractor.

This method should be called after all data has been seen via partial_fit. It marks the feature as fitted.

partial_fit(x, y=None)[source]

Update the feature extractor’s state with a batch of data.

Parameters:
  • *x (tuple) – The input data for fitting.

  • y (any, optional) – The target data, if required for supervised training.

static transform_input(x)[source]