DLS 2 week 3 exercise 6 compute_cost

Actually your total loss value looks correct, but then you computed the average across the samples. Here’s a thread which explains why that is not what is intended here.