您当前的位置: 首页 >  ar
  • 2浏览

    0关注

    2393博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

成功解决FutureWarning: max_iter and tol parameters have been added

一个处女座的程序猿 发布时间:2019-02-21 22:48:33 ,浏览量:2

成功解决FutureWarning: max_iter and tol parameters have been added

 

 

目录

解决问题

解决思路

解决方法

 

 

 

 

解决问题

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)

类似的问题

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中的中添加了max_iter和tol参数。如果两个都未设置,则默认为max_iter=5,tol=none。如果tol不是none,max-iter默认为max-iter=1000。从0.21开始,默认的最大值为1000,默认的公差为1e-3。“默认TOL将为1E-3。

 

 

 

解决方法

此信息提示为警告,而不是error,即使不处理也不会影响代码编程的运行。如果想要去掉,可以更新库至最新版本! 然后根据提示修改使用方法! stochastic_gradient模块已经被重构,在未来的版本中默认参数有所改变! 然后使用最新版本stochastic_gradient方法,并要知道默认参数已经随着版本升级而改变了。

 

 

 

关注
打赏
1664196048
查看更多评论
立即登录/注册

微信扫码登录

0.0988s