Post-hoc tuning the cut-off point of decision function
Once a binary classifier is trained, the predict method outputs class label predictions corresponding to a thresholding of either the decision_function or the predict_proba output. The default threshold is defined as a posterior probability estimate of 0.5 or a decision score of 0.0. However, this default strategy may not be optimal for the task at hand.
This example shows how to use the
TunedThresholdClassifierCV to tune the decision
threshold, depending on a metric of interest.
# Authors: The scikit-learn developers
# SPDX-License-Identifier: BSD-3-Clause

