curso-r/treesnip

Error when stacking with lightgbm

Opened this issue · 3 comments

I am using boost_tree with lightgbm as the engine. But I get an error when I try to stack lightgm with other models e.g catboost or xgboost.

here is the error message
Attempting to use a Booster which no longer exists. This can happen if you have called Booster$finalize() or if this Booster was saved with saveRDS()

Does anyone has a solution to this?

This might be related to #33 ?

It's probably related. I think we need to set a lightgbm option to make models serializable: https://lightgbm.readthedocs.io/en/latest/R/reference/lightgbm.html see the serializable argument here.

Thanks @siegfried and @dfalbel I had given up on this. I will look into the provided info.