dtoolkit.pipeline.Pipeline.fit_predict#
- Pipeline.fit_predict(X, y=None, **fit_params) Union[ndarray, Series][source]#
Transform the data, and apply predict with the final estimator.
Call transform of each transformer in the pipeline. The transformed data are finally passed to the final estimator that calls predict method. Only valid if the final estimator implements predict.
- Parameters
- Xiterable
Data to predict on. Must fulfill input requirements of first step of the pipeline.
- **predict_paramsdict of string -> object
Parameters to the
predictcalled at the end of all transformations in the pipeline. Note that while this may be used to return uncertainties from some models with return_std or return_cov, uncertainties that are generated by the transformations in the pipeline are not propagated to the final estimator.New in version 0.20.
- Returns
- y_predndarray
Result of calling predict on the final estimator.