简体   繁体   English

您可以在 R 包中设置 xgboost 全局详细级别吗?

[英]Can you set xgboost global verbosity level at the R package?

I'm looking for a way to silence xgboost warning produced c/cpp source code to R console.我正在寻找一种方法来使 xgboost 警告产生的 c/cpp 源代码静音到 R 控制台。 I was thinking of doing it by using the verbosity level on a global level as I can see there is a _global_verbosity level in the source.我正在考虑通过在全局级别使用详细级别来完成它,因为我可以看到源中有一个 _global_verbosity 级别。 Searching for an exposed function to modify it yielded no results.搜索一个暴露的函数来修改它没有产生任何结果。

Am I missing an existing way to do it or it needs to be exposed?我是否错过了现有的方法,或者需要公开它?

https://github.com/dmlc/xgboost/blob/184e2eac7dd7b1df324ab5c7fca32c810981fd8b/R-package/src/xgboost_custom.cc#L19 https://github.com/dmlc/xgboost/blob/184e2eac7dd7b1df324ab5c7fca32c810981fd8b/R-package/src/xgboost_custom.cc#L19

It will be resolved with https://github.com/dmlc/xgboost/pull/6414 .它将通过https://github.com/dmlc/xgboost/pull/6414解决。

Global configurations will now be propagated to workers accordingly.全局配置现在将相应地传播给工作人员。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM