Why does a machine learning model require a loss function to train?
Role: Machine Learning Engineer
Category: Machine Learning
Difficulty: easy
Interview Round: Other
Overview: Asks why training a machine learning model needs a loss function. Tests understanding of training as optimization, how gradients of the loss update parameters, how the choice of loss shapes predictions, and the difference between a training loss and an evaluation metric.