LightGBM icon indicating copy to clipboard operation
LightGBM copied to clipboard

[Feature] silence the progress or verbosity

Open poplarytics opened this issue 10 years ago • 7 comments

Is there any way to silence the progress?

If I do not want the output "[LightGBM] 1.501629 seconds elapsed, finished 50 iteration]"

poplarytics avatar Oct 20 '16 14:10 poplarytics

Try to comment out the line Log::Stdout("%f seconds elapsed, finished %d iteration", std::chrono::duration<double, std::milli>(end_time - start_time) * 1e-3, iter + 1); in src/boosting/gdbt.cpp and recompile.

wxchan avatar Oct 20 '16 14:10 wxchan

Thanks, wxchan.

It would be better put that option in conf

poplarytics avatar Oct 20 '16 14:10 poplarytics

@fengqifang , thanks for your advice, we will update the log level settings

chivee avatar Oct 21 '16 03:10 chivee

The contribute about this is also welcomed

guolinke avatar Oct 21 '16 04:10 guolinke

I will add this feature soon.

chivee avatar Oct 21 '16 05:10 chivee

Not sure what people actually need. If the silence parameter exists, which parts of output would disappear?

I have another suggestion: if run lightgbm without 'config=', it will show some helps about configurations like libsvm does.

wxchan avatar Oct 21 '16 06:10 wxchan

@wxchan ,we are adding an optional logger for lightGBM, with which you can set logging levels to choose the verbosity.

we can adding some -h --help options for this case.

chivee avatar Oct 21 '16 06:10 chivee