Unable to pass C1-W4 assignment - Are tests really alright?

Dear colleagues,

I am trying to get my grade for last assignment of the C1 course but after spending more than a day trying to figure it out why this is happening I am not able to find it.

I think there is something wrong with test_nearest_neighbor function and test_approximate_knn.

I am getting the following error in the first one:

And to me it seems and ordering problem which I am not sure my solution has. As I believe I am sorting the arrays correctly. Is there any posibility to get some support from an instructor

The pattern looks pretty clear: your values are in the exact opposite order that is expected. Just looking at the evidence it suggests that you are not sorting the arrays correctly.

Hi @paulinpaloalto.

This is the result I getting

Is this incorrect?

Yes, that is incorrect. It appears that you’re sorting them in the opposite order that is requested.

One way to debug would be to print the distances.

Hi,

I just found the issue. Apologies for the inconvenience. What a day!

BR
E