Suppose we have some binary classification task and train the model using any of binary classifier available (LogisticRegressionBinaryClassifier or FastTreeBinaryClassifier or anything else).
Then we evaluate our model on a testing set using BinaryClassificationEvaluator. During this evaluation we can set a threshold using Threshold property of the evaluator.
The question is: how can we set the threshold for prediction?
Suppose we have some binary classification task and train the model using any of binary classifier available (LogisticRegressionBinaryClassifier or FastTreeBinaryClassifier or anything else).
Then we evaluate our model on a testing set using BinaryClassificationEvaluator. During this evaluation we can set a threshold using
Thresholdproperty of the evaluator.The question is: how can we set the threshold for prediction?