Open dacian-dataheroes opened 1 year ago
Setting the leaf output does not change the inner prediction buffer.
booster._Booster__inner_predict_buffer[0]
is basically the train predictions for each iteration.
To make boosting work, you would also want to update that by adding the offset from the new leaf scores. Not 100% sure but definitely worth a try.
Description
Changing leaf values with
set_leaf_output
in callback doesn't work the same as usinglgb.train
for each epoch.Reproducible example
Environment info
LightGBM version or commit hash: 4.0.0
Command(s) you used to install LightGBM
Additional Comments