Cannot compute_cost course 2 week 3

That expression returns one loss value per example. The call to mean_reduce is indeed confusing.

Here’s the derivation for the formula, in case you find it interesting.

3 Likes