All tests passed, yet 0/10 (approximate_knn())

Hi there,

I got All tests passed, yet it gives me 0/10 when I submit my grade. What’s happening?

Cossy


Hey @Cossy,
I already replied regarding this on the other thread. Please check it out.

Cheers,
Elemento

1 Like

Hey @Cossy,
I checked your implementation for the approximate_knn function, and it is perfectly good. A good possibility is that you have changed something that you were not supposed to change. Please get a fresh copy of your notebook, paste your solutions in it, and try to submit it. See if the error persists.

Cheers,
Elemento

Hi @Elemento,

I get a fresh one and paste my solution, and it worked!
Apparently, I changed this part, which you’re not supposed to change, and that was causing this problem.

The original:
# assert num_universes_to_use <= N_UNIVERSES
How I changed:
assert num_universes_to_use <= N_UNIVERSES

By the way, this issue remains. It doesn’t affect my grade but just so you know.

Hey @Cossy,
Congratulations, you may have found a possible error in the grader :joy: Can you please DM your code for the make_hash_table function, so that I can see what exactly is escaping the grader’s vision?

Just to confirm, you have received a complete score for the assignment, despite of having output different from the expected one in the public test cases of make_hash_table. Am I right?

Cheers,
Elemento

Hi @Elemento,

Thank you :joy: I will DM you later!
And yes, I got the certificate with a full score!

Cossy