631. Purpose of Loss Function
easy

What is the purpose of a loss function in machine learning?