ValueError: c of shape (1, 400) not acceptable as a color sequence for x with size 400, y with size 400
# Visualize the data:
plt.scatter(X[0, :], X[1, :], c=Y.reshape(400), s=40, cmap=plt.cm.Spectral);

Y改成Y.reshape(400)

相关文章:

  • 2021-10-16
  • 2022-01-19
  • 2022-12-23
  • 2022-12-23
  • 2021-11-16
  • 2022-03-08
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-16
  • 2021-11-17
  • 2022-01-14
  • 2021-09-10
  • 2022-01-11
  • 2021-12-09
相关资源
相似解决方案