简体   繁体   中英

How can I stop the log output of lightgbm?

I would like to know how to stop lightgbm logging. 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?

I think you can disable lightgbm logging using verbose=-1 in both Dataset constructor and train function, as mentioned here

Follow these points.

  1. Use "verbose= False" in "fit" method.
  2. Use "verbose= -100" when you call the classifier.
  3. Keep "silent = True" (default).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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