无法获取XGBoos的参数数

2024-10-03 02:47:18 发布

您现在位置:Python中文网/ 问答频道 /正文

对于下面的函数,我没有得到作为输出的估计数,相反,我得到了如下类型的误差。在

cv() got an unexpected keyword argument 'show_progress'

即使文档中包含该标志,我还是得到了类型错误。我关注这个博客的参数调整。有人能指出我哪里出错了吗?the blog 有没有其他方法可以得到作为输出的估计数?在

^{pr2}$

Tags: 函数文档an类型标志show错误argument
1条回答
网友
1楼 · 发布于 2024-10-03 02:47:18

最新版本(0.6)的xgboost具有以下选项xgb.cv公司名称:

xgboost.cv(params, dtrain, num_boost_round=10, nfold=3, 
stratified=False, folds=None, metrics=(), obj=None, feval=None, 
maximize=False, early_stopping_rounds=None, fpreproc=None, 
as_pandas=True, verbose_eval=None, show_stdv=True, seed=0, 
callbacks=None, shuffle=True)

show_progress已被弃用,取而代之的是冗长的评估。见here

相关问题 更多 >