What is the difference between loss function and metric in Keras? [duplicate]

The loss function is used to optimize your model. This is the function that will get minimized by the optimizer.

A metric is used to judge the performance of your model. This is only for you to look at and has nothing to do with the optimization process.

Leave a Comment