What is the difference between an evaluation metric and a loss function?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Explain how a loss function differs from an evaluation metric in machine learning. Tests why training needs a differentiable surrogate, why metrics such as accuracy, F1 and AUC cannot be optimized directly, and how to close the gap between the two.