HUM AI JA Jani Data Diaries Cost Functions: How to Teach a Machine What Mistakes Really Matter Imagine you are learning to cook biryani for the first time.