What can i do to run my code?


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

Hey @mishraji_27, upload your ipynb notebook on google drive, and share the link here. Make sure to upload ipynb directly and not .txt .py etc.