- 博客(3)
- 问答 (1)
- 收藏
- 关注
原创 ConvergenceWarning
H:\PycharmProjects\pythonProject\venv\lib\site-packages\sklearn\svm\_base.py:1199: ConvergenceWarning: Liblinear failed to converge, increase the number of iterations. warnings.warn(错误代码:svc = svm.LinearSVC(C=1,loss='hinge',max_iter=100)#查看c=1的...
2021-10-18 16:07:59
267
原创 ValueError: shapes (1,3) and (100,1) not aligned: 3 (dim 1) != 100 (dim 0)
项目场景:完成吴恩达机器学习作业时,编写逻辑回归代码,遇到以上错误。问题描述:ValueError: shapes (1,3) and (1,100) not aligned: 3 (dim 1) != 1 (dim 0)原因分析:发现原先写的损失函数cost()中,参数的位置错了,在写梯度下降函数时,以及损失函数时,要把theta放到前面。解决方案:def gradient(theta,X,y)def cost(theta,X,y)result = opt.fmin
2021-08-13 14:42:31
3134
2
空空如也
用unity打包apk出错
2021-12-18
TA创建的收藏夹 TA关注的收藏夹
TA关注的人