Help with constructing cost function

Hi @Kaushik,

Let’s keep the conversation in this other thread! I’ve replied t your question there.