Here’s a thread about how to decide between dot product and elementwise multiply.
Here’s another one that is more specific to this question of how to compute the cost.
Here’s a thread about how to decide between dot product and elementwise multiply.
Here’s another one that is more specific to this question of how to compute the cost.