PCATransform๏ƒ

Stability: Stable

What it is๏ƒ

Use PCATransform as a ready-made preprocessing step inside direct analysis code or a Pipeline.

Representative Signatures๏ƒ

PCATransform(n_components=None, whiten=False, align="intersection")
PCATransform.fit_transform(x)

Minimal Example๏ƒ

from gwexpy.timeseries import PCATransform

components = PCATransform(n_components=2).fit_transform(ts_matrix)

API Reference๏ƒ

The detailed generated API continues below on this page.

Inherits from: Transform

PCA wrapper using existing decomposition helpers.

Methods๏ƒ

__init__๏ƒ

__init__(self, n_components: Optional[int] = None, *, multivariate: bool = True, align: str = 'intersection', **kwargs)

Initialize self. See help(type(self)) for accurate signature.

(Inherited from Transform)

fit๏ƒ

fit(self, x)

Fit the transform to the data. Returns self.

(Inherited from Transform)

fit_transform๏ƒ

fit_transform(self, x)

Fit and transform in one step.

inverse_transform๏ƒ

inverse_transform(self, y)

Reverse the transform. Not all transforms support this.

(Inherited from Transform)

transform๏ƒ

transform(self, x)

Apply the transform to data. Must be implemented by subclasses.

(Inherited from Transform)