ValueError: shapes (1,3) and (100,1) not aligned: 3 (dim 1) != 100 (dim 0)
ValueError:shapes(1,3)and(100,1)notaligned:3(dim1)!=100(dim0)出现这个错误,是你数据的维度不对!这个问题是出现在写logisticRegression代码时出现的`#用scipy中truncatednewton(TNC)实现寻找最优参数importscipy.optimizeasoptresult=opt.fmin_tnc(func=co