imblearn.pipeline.Pipeline.predict

Pipeline.predict(X, **predict_params)[source]

Apply transforms to the data, and predict with the final estimator

Parameters
Xiterable

Data to predict on. Must fulfill input requirements of first step of the pipeline.

**predict_paramsdict of string -> object

Parameters to the predict called 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_predarray-like