All tests passed but the actual answer is different

Hello, I have a problem in the compute_gradient() function. I ran my code and my result didn’t match the expected output but it all passed. I think this is the main problem that lead into another error to my compute_gradient_reg() function.

Your expected outputs are wrong. So there is an error in your code.

The “all tests passed” message does not mean your code is perfect. Really it only means that one set of tests passed.

thanks for the response, just solve the problem :slight_smile: