You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think the L2_distances in the function nearest_neighbour_correct should be computed as follows: dis = pairs[0][i] - pairs[1][i] dis = dis.reshape(dis.size) L2_distances[i] = np.sqrt(dis.dot(dis))
instead of L2_distances[i] = np.sum(np.sqrt(pairs[0][i]**2 - pairs[1][i]**2))
The text was updated successfully, but these errors were encountered:
I think the L2_distances in the function nearest_neighbour_correct should be computed as follows:
dis = pairs[0][i] - pairs[1][i]
dis = dis.reshape(dis.size)
L2_distances[i] = np.sqrt(dis.dot(dis))
instead of
L2_distances[i] = np.sum(np.sqrt(pairs[0][i]**2 - pairs[1][i]**2))
The text was updated successfully, but these errors were encountered: