成功解决FutureWarning: max_iter and tol parameters have been added
成功解决FutureWarning: max_iter and tol parameters have been added
目录
解决问题
解决思路
解决方法
解决问题
FutureWarning: max_iter and tol parameters have been added in
"and default tol will be 1e-3." % type(self), FutureWarning)
类似的问题
linear_model\stochastic_gradient.py:128: FutureWarning: max_iter and tol parameters have been added in in 0.19. If both are left unset, they default to max_iter=5 and tol=None. If tol is not None, max_iter defaults to max_iter=1000. From 0.21, default max_iter will be 1000, and default tol will be 1e-3."and default tol will be 1e-3." % type(self), FutureWarning)
解决思路
未来警告:在0.19中的
解决方法
此信息提示为警告,而不是error,即使不处理也不会影响代码编程的运行。如果想要去掉,可以更新库至最新版本!
然后根据提示修改使用方法!
stochastic_gradient模块已经被重构,在未来的版本中默认参数有所改变!
然后使用最新版本stochastic_gradient方法,并要知道默认参数已经随着版本升级而改变了。
本文来自互联网用户投稿,文章观点仅代表作者本人,不代表本站立场,不承担相关法律责任。如若转载,请注明出处。 如若内容造成侵权/违法违规/事实不符,请点击【内容举报】进行投诉反馈!
