What is class-weighted cross-entropy loss?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks what class-weighted cross-entropy is, how the loss is written for multiclass and binary classification, and how the class weights are chosen. Tests understanding of class imbalance, the effect of weights on gradients and recall, and why weighting breaks probability calibration.