DP-100 · Question #278
You create a binary classification model. You use the Fairlearn package to assess model fairness. You must eliminate the need to retrain the model. You need to implement the Fairlearn package. Which…
The correct answer is B. fairlearn.postprocessing.ThresholdOptimizer. fairlearn.postprocessing.ThresholdOptimizer is the correct choice when you cannot retrain the model. It is a post-processing algorithm that wraps an already-trained classifier and adjusts its decision thresholds to satisfy fairness constraints, requiring no retraining. Options…
Question
Options
- Afairlearn.reductions.ExponentiatedGradient
- Bfairlearn.postprocessing.ThresholdOptimizer
- Cfairlearnpreprocessing.CorrelationRemover
- Dfairlearn.reductions.GridSearch
How the community answered
(25 responses)- A8% (2)
- B72% (18)
- C4% (1)
- D16% (4)
Explanation
fairlearn.postprocessing.ThresholdOptimizer is the correct choice when you cannot retrain the model. It is a post-processing algorithm that wraps an already-trained classifier and adjusts its decision thresholds to satisfy fairness constraints, requiring no retraining. Options A (ExponentiatedGradient) and D (GridSearch) are reduction-based in-processing methods that train multiple models and require full retraining. Option C (CorrelationRemover) is a preprocessing technique applied to training data before model training begins.
Topics
Community Discussion
No community discussion yet for this question.