Help with cost function

Here’s a thread which discusses how to compute the cost. There are a number of ways to do it.

Here’s another one that starts directly from 1 x 3 dot 1 x 3.