I was playing around the mergeModels function. The following function looks like not change the first booster, as it always creates a new LightGBMBooster using the old "model" value. Do I miss anything there?
def mergeModels(newModel: LightGBMBooster): LightGBMBooster = {
// Merges models to first handle
if (model != null) {
LightGBMUtils.validate(
lightgbmlib.LGBM_BoosterMerge(getModel(), newModel.getModel()),
"Booster merge")
}
new LightGBMBooster(model)
}