dtoolkit.pipeline.Pipeline.predict_log_proba#

Pipeline.predict_log_proba(X, **predict_log_proba_params)#

Transform the data, and apply predict_log_proba 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_log_proba method. Only valid if the final estimator implements predict_log_proba.

Parameters
Xiterable

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

**predict_log_proba_paramsdict of string -> object

Parameters to the predict_log_proba called at the end of all transformations in the pipeline.

Returns
y_log_probandarray of shape (n_samples, n_classes)

Result of calling predict_log_proba on the final estimator.