Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assignment1 KNN classifier L2 distance #4

Open
aishik-pyne opened this issue May 12, 2017 · 1 comment
Open

assignment1 KNN classifier L2 distance #4

aishik-pyne opened this issue May 12, 2017 · 1 comment

Comments

@aishik-pyne
Copy link

The functions
compute_distances_two_loops
compute_distances_one_loops
compute_distances_no_loops
all are required to compute the L2 distance so the dists matrix should be prepended by np.sqrt in all the cases

@haofengsiji
Copy link

Sometimes , it is more covenient to work with mathematically and computationally by using squared L2 norm instead of L2 norm. It's true.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants