plt.scatter(X[: ,0],X[ : ,1],c=Y)
plt.show()
In KNN dataset implementation.
IN above lines, i a m not getting why c=Y is written ?
KNN x,y dataset implementation
hey @annudhiman ,
c means the color mapping .
So , in this are providing the actual output values and it will automatically understand that a random color is to be used in the given order , to applied on points.
and in this way it will work.
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.