the data set in the video has x has dimension 300X2 & Y has a dimension of 300X1 now for plotting we use scatter as x[:,0],x[:],1 with y given as a color and not simply as x,y to scatter function
Explain the data set
Hey @apsdk000, actually you are thinking that Y contains y coordinate for all points, but actually it contains values 0/1 for each point. 0 for point belonging to 0 class and 1 for points belonging to 1 class. On the other hand x array contains two columns one for the x coordinate, and one for the y coordinate. And that is the reason we have used scatter as x[:,0],x[:,1] and color = y so that points for 0 class are coloured are in different color from that of points belonging to 1 class.
Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section. 