General doubt in K-Nearest neighbour

Sir from where we get these datasets that sir uses

could u please tell us or send this document via mail

Thanks in advance:)

Hey @Royal_Yashasvi, please find the dataset in the link attached below :

I hope this clears your doubt !
Happy Learning ! :slight_smile:

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.

sir, i am getting error

IndexError Traceback (most recent call last)
in ()
20 return pred
21
—> 22 x=knn(x,y,[4,5])
23 print(x)

in knn(x, y, querypoint, k)
4 def knn(x,y,querypoint,k=5):
5 vals=[]
----> 6 m=x.shape[0]
7 for i in range(m):
8 d=dist(querypoint,x[i])

IndexError: tuple index out of range

Hey @zafeerkhan, please create a new doubt for your query. I would be happy to help !

Thanks ! :+1: