python问题:ValueError: operands could not be broadcast together with shapes (100,3) (3,1)
原文链接:http://www.mamicode.com/info-detail-1072145.html背景:dataMatrix是(100,3)的列表,labelMat是(1,100)的列表,weights是(3,1)的数组,属性如下代码所示:>>>importtypes>>>type(dataMatrix)>>>type(labelMat)>>>type(weights)我的代码:>>>da