How would you set a threshold to hit a 95% recall floor or a 1,000-alert daily review capacity?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Your binary classifier gives each item a score, and items above a threshold are sent to human reviewers as alerts.
How would you choose a threshold to meet a business constraint such as a minimum recall of 95% or a fixed review capacity of 1,000 alerts per day?
```hint Recall floor
Look at how recall and precision move as the threshold rises, and ask how noisy a recall estimate is when the validation set has only a few hundred positives.
```
```hint Capacity limit
A daily alert budget is a statement about how many live items cross the cutoff each day. Which data set tells you that?
```
### What a Strong Answer Covers
- How to turn the recall floor into a threshold on validation data, and which of the passing thresholds to pick
- How to turn the capacity limit into a cutoff (fixed score quantile or daily top-k) and which data to compute it on
- Margin for sampling noise and drift, including how to estimate recall in production when missed positives go unlabeled
- What to do when no single threshold meets both constraints
- Which numbers to report for each choice (precision, alert volume, precision@k, recall@k)
### Follow-up Questions
- How would you estimate recall in production when the items you did not flag are never reviewed?
- If prevalence doubles next month, what happens to the recall-based threshold and to the daily alert volume?
- When would you prefer sending the top 1,000 items each day over a fixed score cutoff, and what does each cost the reviewers?
- How would you set the threshold if several segments (regions or product lines) share one review queue?
Overview: Asks how to pick a classifier score threshold that meets a business constraint, either a minimum recall of 95% or a review capacity of 1,000 alerts per day. Tests precision and recall trade-offs, quantile cutoffs on production scores, margins for noise and drift, and how to handle constraints that conflict.