You must use an externally approved threshold without refitting an already trained model. Which composition expresses…
Classic MLLevel: IntermediateFixed policy threshold
You must use an externally approved threshold without refitting an already trained model. Which composition expresses that?
Hints
- Freeze the estimator separately from the decision policy.
- A fixed threshold does not require a search.
Answer
Use FixedThresholdClassifier around FrozenEstimator(model). The threshold is supplied explicitly, and the frozen wrapper prevents accidental refitting when the composite is fitted.
Source and licence: scikit-learn 1.7.2 — classification threshold · BSD-3-Clause · answer: Quantoros editorial