python3 error 机器学习 错误

AttributeError: 'NoneType' object has no attribute 'sqrt'

这个错误其实是因为

plt.scatter(x[:,0],x[:,1],x[:,2],marker='o')
scatter()函数在程序中出现两次而show() 只展示一次

猜你喜欢

转载自www.cnblogs.com/qieyu/p/10417259.html