ValueError: shapes (1,3) and (100,1) not aligned: 3 (dim 1) != 100 (dim 0)
ValueError: shapes (1,3) and (100,1) not aligned: 3 (dim 1) != 100 (dim 0)
出现这个错误,是你数据的维度不对!这个问题是出现在写logistic Regression 代码时出现的`
#用scipy中truncated newton(TNC)实现寻找最优参数
import scipy.optimize as opt
resu...
原创
2020-02-26 21:15:31 ·
13476 阅读 ·
14 评论