Python学习总结
1、错误:weights = weights + alpha * error * dataMatrix[randIndex])TypeError: 'numpy.float64' object cannot be interpreted as an index改为点乘就可以了weights = weights + dot(dot(alpha, error), dataMatrix[randInd...
原创
2018-03-10 22:46:11 ·
211 阅读 ·
0 评论