ERROR inProgramming Assignment: Deep Learning for Content-Based Filtering

Code Cell UNQ_C2: Unexpected error (TypeError(“‘NoneType’ object is not callable”)) 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.
What can I do

Did you complete the code in the UNQ_C2 cell?

Yes sir. I completed

Did you complete all of the parts of the entire notebook?

yes sir i completed

Hello Lavanya,

What Tom is trying to ask you is if you have recalled all the codes or missed any of the None object which needs to recalled with the correct code.

Your error log tells you have recalled your function with incorrect steps or missed calling the points and/or centroids that would create new centroids.

So go back again to your UNQC2 and see if you have recalled your codes correctly.

if you still cannot find, then send notebook/code for UNQC2 via personal DM. Click on my name and then message.