plt.scatter(x_train[:, 0], x_train[:, 1], c = y_train)
cause error:
C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\colors.py in _to_rgba_no_colorcycle(c, alpha)
188 if len(c) not in [3, 4]:
--> 189 raise ValueError("RGBA sequence should have length 3 or 4")
190 if len(c) == 3 and alpha is None:
ValueError: RGBA sequence should have length 3 or 4
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)
in ()
----> 1 plt.scatter(x_train[:, 0], x_train[:, 1], c = y_train)
plt.scatter(x_train[:, 0], x_train[:, 1], c = y_train) cause error: C:\ProgramData\Anaconda3\lib\site-packages\matplotlib\colors.py in _to_rgba_no_colorcycle(c, alpha) 188 if len(c) not in [3, 4]: --> 189 raise ValueError("RGBA sequence should have length 3 or 4") 190 if len(c) == 3 and alpha is None:
ValueError: RGBA sequence should have length 3 or 4
During handling of the above exception, another exception occurred:
ValueError Traceback (most recent call last)