The `decision_function` method in the `sklearn.pipeline.Pipeline` module in Python is used to compute the decision function for the given samples in the pipeline. It applies all the transforms in the pipeline to the given samples and then uses the last estimator to compute the decision function. The decision function represents the distance of the samples to the decision boundary of the classifier, where positive values indicate one class and negative values indicate the other class.
Python Pipeline.decision_function - 41 examples found. These are the top rated real world Python examples of sklearn.pipeline.Pipeline.decision_function extracted from open source projects. You can rate examples to help us improve the quality of examples.