Loss function is a mathematical way of measuring how well or poorly a model is doing at its task.