C3_W2_RecSysNN_Assignment_Unexpected error (NameError(“name ‘d’ is not defined”))

Hi, at the end of the assignements, when I look at the grades it answer:

Code Cell UNQ_C2: Unexpected error (NameError(“name ‘d’ is not defined”)) occurred during function check. We expected function sq_dist to return type <class ‘bool’>. Please check that this function is defined properly.
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 defined d as the distance can someone help me?
The results after the commands results as “All tests passed!”


Hello Paolo,

I suspect one of your functions is not receiving the correct input. If you can dm me your notebook, I can take a look.

You can download the notebook if you open your assignment, click “File” > “Download as” > “notebook”. Then your notebook is downloaded.



Was this resolved? I am coming across the same exact issue with my submitted assignment. Tests pass from within code, but fail with the autograder.

Hello @hungryshin,

Please open a new thread with a screenshot that shows the error messages reported by the autograder. I am closing this thread.