K-nn algorithm datasets

can you please explain me whats the importance of y dataset ? i am really getting confused

from where can i get xdata and ydata datasets?

hi @dakshtrehan
y dataset tell the classification of x into the different classes ie 0 and 1 class

1 Like

refer to online github repository on online machine learning course.

1 Like

but at time of plt.scatter we only give x so how come y classifying x?

hi @dakshtrehan
if we scatter x without specify the y then it will scatter y = 0 all x with one color and all y = 1 with all same colors