How do you evaluate a classifier when FP and FN have different costs?
hardAnswer
- Assign explicit costs and .
- Compute expected cost per .
- Pick the threshold that minimizes it on validation.
- Report expected loss in dollar / operational units, not just precision-recall.
- If costs are unknown but ordinal (FN worse than FP), use ROC iso-cost lines: parallel lines whose slope encodes the FP/FN cost ratio — pick the operating point where the line first touches the ROC curve.
Check yourself — multiple choice
- Report only accuracy
- Assign explicit FP/FN costs; minimize expected cost on validation and pick the threshold accordingly
- Use only ROC-AUC
- Cost-sensitive evaluation is not possible
Attach costs to FP and FN → minimize expected cost on validation → pick threshold.
#metrics#classification
Practise Supervised Learning
215 interview questions in this topic.
Related questions
- Precision vs recall — when do you optimize each?
- How do you read a confusion matrix and derive the key metrics?
- Why is accuracy a bad primary metric for many real-world problems?
- What is F-beta score and when is F1 not enough?
- Macro vs micro vs weighted averaging in multi-class metrics — how do you choose?
- What is Cohen's kappa and why is it useful?