We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59e6cef commit 80e9738Copy full SHA for 80e9738
classification.md
@@ -126,7 +126,7 @@ class NearestNeighbor(object):
126
Ypred = np.zeros(num_test, dtype = self.ytr.dtype)
127
128
# loop over all test rows
129
- for i in xrange(num_test):
+ for i in range(num_test):
130
# find the nearest training image to the i'th test image
131
# using the L1 distance (sum of absolute value differences)
132
distances = np.sum(np.abs(self.Xtr - X[i,:]), axis = 1)
0 commit comments