C2 W3 - Ex. 6 Compute Total loss - Failing Tests

Note that your return value is an array, but it’s supposed to be a scalar, right? Did you do the “sum” as the instructions say?

Here’s the “checklist” for common errors on this function.