I was able to get to the last part of the assignment which had a bunch of cells that asked that I changed nothing, but just run as they are relevant to the grading. But the last test seemed to fail.
can you DM the codes
Notice that your answers are empty, but they are not expected to be. So how could that happen? There must be something wrong in the logic of your approximate_knn
function.
Also note that you can examine the test case code to see what it is doing by clicking “File → Open” and then opening w4_unittest.py
and having a look.
Oh, I saw my oversight.
I missed one of the “None” under the if statement in the approximate_knn function.
Works fine now…
Thank you.
1 Like