dtoolkit.pipeline.Pipeline.transform#
- Pipeline.transform(X) Union[ndarray, Series, DataFrame][source]#
Transform the data, and apply transform with the final estimator.
Call transform of each transformer in the pipeline. The transformed data are finally passed to the final estimator that calls transform method. Only valid if the final estimator implements transform.
This also works where final estimator is None in which case all prior transformations are applied.
- Parameters
- Xiterable
Data to transform. Must fulfill input requirements of first step of the pipeline.
- Returns
- Xtndarray of shape (n_samples, n_transformed_features)
Transformed data.