dtoolkit.pipeline.Pipeline#
- class dtoolkit.pipeline.Pipeline(steps, *, memory=None, verbose=False)[source]#
Pipeline of transforms with a final estimator.
- Parameters
- *args, **kwargs
See the documentation for
sklearn.pipeline.Pipelinefor complete details on the positional arguments and keyword arguments.
See also
make_pipelineDToolKit’s version
sklearn.pipeline.make_pipelinesklearn’s version
Notes
Different to
sklearn.pipeline.Pipeline. This would letDataFramein andDataFrameout.- Attributes
classes_The classes labels.
feature_names_in_Names of features seen during first step fit method.
n_features_in_Number of features seen during first step fit method.
named_stepsAccess the steps by name.
Methods
Transform the data, and apply decision_function with the final estimator.
fit(X[, y])Fit the model.
fit_predict(X[, y])Transform the data, and apply predict with the final estimator.
fit_transform(X[, y])Fit the model and transform with the final estimator.
get_feature_names_out([input_features])Get output feature names for transformation.
get_params([deep])Get parameters for this estimator.
Apply inverse_transform for each step in a reverse order.
predict(X, **predict_params)Transform the data, and apply predict with the final estimator.
predict_log_proba(X, **predict_log_proba_params)Transform the data, and apply predict_log_proba with the final estimator.
predict_proba(X, **predict_proba_params)Transform the data, and apply predict_proba with the final estimator.
score(X[, y, sample_weight])Transform the data, and apply score with the final estimator.
Transform the data, and apply score_samples with the final estimator.
set_output(*[, transform])Set the output container when "transform" and "fit_transform" are called.
set_params(**kwargs)Set the parameters of this estimator.
transform(X)Transform the data, and apply transform with the final estimator.