DP-100 · Question #278
DP-100 Question #278: Real Exam Question with Answer & Explanation
The correct answer is B: fairlearn.postprocessing.ThresholdOptimizer. {"question_number": 5, "correct_answer": "B", "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 sat
Question
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 algorithm should you use?
Options
- Afairlearn.reductions.ExponentiatedGradient
- Bfairlearn.postprocessing.ThresholdOptimizer
- Cfairlearnpreprocessing.CorrelationRemover
- Dfairlearn.reductions.GridSearch
Explanation
{"question_number": 5, "correct_answer": "B", "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.", "generated_by": "claude-sonnet", "llm_judge_score": 4}
Topics
Community Discussion
No community discussion yet for this question.