IndexError Traceback (most recent call last)
in
----> 1 pred=knn(X_train,Y_train,X_test[0])
2 print(int(pred))
in knn(X, Y, querryPoint)
10 for i in range(m):
11 d=dist(querryPoint,X[i])
—> 12 vals.append((d,Y[i]))
13
14
IndexError: index 4000 is out of bounds for axis 0 with size 4000