pyeeg.preprocess.Whitener.fit

Whitener.fit(X, y=None, axis=None)

Fit the whitener on X: demean, estimate the covariance and compute the whitening rotation.

Parameters:
  • X (ndarray) – Training data.

  • y (ignored) – Present for scikit-learn API compatibility.

  • axis (int, optional) – Axis along which samples run. If None, self.axis is used.

Returns:

self – The fitted estimator.

Return type:

Whitener