项目中bug总结
其他
2018-12-11 10:11:00
阅读次数: 0
一、invalid literal for int() with base 10: '293.02'
在进行数组使用reduce求总和的时候,不能使用int()类型,应该使用float()。
二、raise ValueError("Unknown label type: %r" % y_type)
Unknown label type: 'continuous'
在进行模型预测的时候,fit(x,y),y后面加上.astype 即可。
三、index 0 is out of bounds for axis 0 with size 0
自己代码写错了。很小的错误。
四、only integers, slices (`:`), ellipsis (`...`), numpy.newaxis (`None`) and integer or boolean arrays are valid indices
参数型号不符,强制转换成相同类型即可。
五、index 0 is out of bounds for axis 0 with size 0
转载自blog.csdn.net/LoveL_T/article/details/84933317