A dataset for a text classifier shows label imbalance and varying costs of misclassification. Which training approach most directly addresses cost-sensitive performance rather than just accuracy?

Answer

Use class-weighted loss (or focal loss) tuned to the misclassification cost matrix

Explanation

Cost-sensitive optimization requires the objective to reflect the different penalties for different errors. Weighted/focal losses can shift learning toward costly mistakes.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list