Cost Functions: How to Teach a Machine What Mistakes Really Matter

Imagine you are learning to cook biryani for the first time.