LightGBM忽略“从平均值提升”的警告

2024-04-26 15:15:37 发布

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

我使用LightGBM模型(版本2.2.1)。在列车上显示下一个警告:

[LightGBM] [Warning] Starting from the 2.1.2 version, default value for the "boost_from_average" parameter in "binary" objective is true. This may cause significantly different results comparing to the previous versions of LightGBM. Try to set boost_from_average=false, if your old models produce bad results

我找到了它是关于什么的:github link。在

但我不使用任何旧模型或旧代码(它是在LightGBM的2.2.1版本上创建的新项目),所以我不需要每次都看到这个警告。在

我也知道我可以更改verbose并关闭所有警告。但这不是真的好-其他人可以有用!在

所以我的问题是:是否可以仅关闭(隐藏)此警告?


Tags: thetofrom模型版本default警告version