cthorey / CS231

My corrections for the Standford class assingments CS231n - Convolutional Neural Networks for Visual Recognition
590 stars 285 forks source link

assignment1 KNN classifier L2 distance #4

Open aishik-pyne opened 7 years ago

aishik-pyne commented 7 years ago

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 commented 5 years ago

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