CS231 icon indicating copy to clipboard operation
CS231 copied to clipboard

assignment1 KNN classifier L2 distance

Open aishik-pyne opened this issue 7 years ago • 1 comments

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

aishik-pyne avatar May 12 '17 14:05 aishik-pyne

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

haofengsiji avatar Apr 08 '19 11:04 haofengsiji