Although the two tests seem to be passed for the compute_gradient function, the first test literally says it’s passed and the second one has the same output as the expected output but still when it’s time for the grading, it says :
"Code Cell UNQ_C2: Function ‘compute_gradient’ is incorrect. Check implementation.
If you see many functions being marked as incorrect, try to trace back your steps & identify if there is an incorrect function that is being used in other steps.
This dependency may be the cause of the errors. "
I checked the function several times, couldn’t find out what’s wrong .
Solved!!
Just deleted and wrote the whole function again!
Still don’t know what was the problem…Probably some typo or bug!
1 Like
That’s great. Let me close the thread.
1 Like