LightGBM icon indicating copy to clipboard operation
LightGBM copied to clipboard

Regression dump output for tree #0

Open rgranvil opened this issue 9 years ago • 0 comments

In the lgb.dump output, the decision_type for tree 0 with a regression target is always "<=", regardless of whether the feature is categorical. If I understand correctly, the purpose of tree 0 is just to start the boosting from the average and isn't really splitting on any feature. However, this format creates some complications when parsing the dump file and preparing scoring code because of the inconsistency between feature type and decision_type. Could we change the dump output for tree 0 to be "==" when the split_feature is categorical and "<=" when the split_feature is continuous just to maintain consistency within the dump file?

rgranvil avatar Aug 18 '17 18:08 rgranvil