当前位置: 代码迷 >> 综合 >> 机器学习之 x and y must be the same size
  详细解决方案

机器学习之 x and y must be the same size

热度:49   发布时间:2024-02-20 16:57:39.0
ValueError: x and y must be the same size

在使用matplotlib绘图时,使用参数报错X[:,1:]

plt.scatter(X[:,1:], y, c='r', marker='x')

修正:使用X[:,0:]

 

未完待续.......

  相关解决方案