C1_W4_Assignment, regarding nearest neighbor

Hello, I seem to be getting this error, can someone tell me what i am doing wrong?
{Screenshot removed as contained codes from graded cell}

Kindly only share screenshot of your output with the expected output. You are not suppose to share graded cell codes. It is against community guidelines, remove it.

1 Like

Hi @Del_Ali

First problem that is obvious from your code, is that you loop over candidates to get each row, but you never use the row.
You should use it to calculate cosine similarity with v.


1 Like

kindly delete it for me as I am unable to delete it myself. I have submitted a flag though

Oh right. Got it, Thanks :+1::ok_hand:

1 Like