Pipelineο
Stability: Stable
What it isο
Use Pipeline to chain reusable preprocessing transforms and apply them deterministically to time-series-like data.
Representative Signaturesο
Pipeline(steps=[("impute", ImputeTransform()), ("standardize", StandardizeTransform())])
Pipeline.fit_transform(x)
Minimal Exampleο
from gwexpy.timeseries import Pipeline, ImputeTransform, StandardizeTransform
pipeline = Pipeline([("impute", ImputeTransform()), ("standardize", StandardizeTransform())])
out = pipeline.fit_transform(ts_matrix)
API Referenceο
The detailed generated API continues below on this page.
Inherits from: object
Sequentially apply a list of transforms.
Methodsο
__init__ο
__init__(self, steps: Sequence[Tuple[str, gwexpy.timeseries.pipeline.Transform]])
Initialize pipeline with named transform steps.
Parametersο
steps : list of (name, Transform) tuples Sequence of transforms to apply.
fitο
fit(self, x)
Fit all transforms in sequence.
fit_transformο
fit_transform(self, x)
Fit and transform in one step.
inverse_transformο
inverse_transform(self, y, *, strict: bool = True)
Apply inverse transforms in reverse order.
Parametersο
y : data Transformed data. strict : bool, optional If True, raise error if any step doesnβt support inverse.
transformο
transform(self, x)
Apply all transforms in sequence.