What is the conceptual difference between applying sample weights to a loss versus applying class weights?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: medium
Interview Round: Other
Overview: Asks how weighting a training loss per class differs from weighting it per example. Tests understanding of how each kind of weight changes what the model optimizes, its effect on predicted probabilities, common reasons for per-example weights, and how libraries combine the two.