简体   繁体   English

如何停止 lightgbm 的日志 output?

[英]How can I stop the log output of lightgbm?

I would like to know how to stop lightgbm logging.我想知道如何停止 lightgbm 日志记录。 What kind of settings should I use to stop the log?我应该使用什么样的设置来停止日志? Also, is there a way to output only your own log with the lightgbm log stopped?另外,有没有办法让 output 只有你自己的日志,而 lightgbm 日志已停止?

I think you can disable lightgbm logging using verbose=-1 in both Dataset constructor and train function, as mentioned here我认为您可以在数据集构造函数和训练 function 中使用verbose=-1禁用 lightgbm 日志记录,如此所述

Follow these points.遵循这些要点。

  1. Use "verbose= False" in "fit" method.在“fit”方法中使用“verbose= False”。
  2. Use "verbose= -100" when you call the classifier.调用分类器时使用“verbose=-100”。
  3. Keep "silent = True" (default).保持“silent = True”(默认)。

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

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