pyeeg.preprocess.Whitener.transform

Whitener.transform(X, y=None)

Whiten X using the fitted mean and rotation.

Parameters:
  • X (ndarray) – Data to whiten. Must have the same number of channels as the training data.

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

Returns:

X_white – Whitened data, of the same shape as X, with approximately identity covariance.

Return type:

ndarray