ctgk / PRML

PRML algorithms implemented in Python
MIT License
11.48k stars 3.25k forks source link

ch05_Neural_Networks #11

Open Kusina opened 5 years ago

Kusina commented 5 years ago

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)