Lightgbm: incorrect logged parameters in model file

Created on 1 Jun 2019  路  6Comments  路  Source: microsoft/LightGBM

There is a config2string after training model:
https://github.com/microsoft/LightGBM/blob/b1e5a843ab57c64b01c8896ef3cda6fdf907d417/src/io/config_auto.cpp#L549-L654

However, as some parameters are not visible in cpp side when using python/R package, such as num_iteration in python package. Therefore, some logged parameters are not correct.

bug good first issue r-package

All 6 comments

to fix this, I think we should pass all parameters to cpp code, even though some of them are not used in cpp side.

So, what other configurations are needed here beside num_iteration? Would they differ based on the class where they are used; RF,GOSS or DART?

@Xiad32 these configurations just log the error values in the model file, it doesn't affect the normal usage.

Python-package has been fixed in #2589.

ping @jameslamb and @Laurae2 for R-package.

@StrikerRUS hey thanks for the ping, this one was not on my radar. I'll pick it up

@jameslamb Great! Thank you.

Was this page helpful?
0 / 5 - 0 ratings