Loss function is the function that computes the distance between the current output of the algorithm and the expected output.
Exey Panteleev | CC BY 2.0