{mentor edit: code removed}
What is wrong with this code eventhough all tests say passed?
First, please don’t share your code on the forum. That’s not allowed by the Code of Conduct. Just post a description of the issue, and include screen capture images of your grader results or any error messages.
If a mentor needs to see your code, we’ll contact you with instuctions.
Second, have you edited out very much of the original content of the compute_loss() function? Because I don’t see the “START CODE HERE” and “END CODE HERE” comment lines. And some of the code you have included doesn’t look very familiar to me from when I attended the course.
Also, note that passing the tests in the notebook does not prove your code is perfect. The grader uses different tests.
Please check your “Personal Messages” for instructions.