rstudio / bundle

Prepare objects for serialization with a consistent interface
https://rstudio.github.io/bundle/
Other
27 stars 4 forks source link

Best serialization for xgboost? #43

Closed juliasilge closed 2 years ago

juliasilge commented 2 years ago

Right now we are using xgboost::xgb.serialize() but I thought that xgb.save.raw() was the best option (more portable).

@simonpcouch did you look into these or compare them?

simonpcouch commented 2 years ago

From what I read, I also came to the conclusion that xgb.save.raw() was more portable, and that xgb.serialize() would preserve more functionality (notably, making parsnip compatibility "automatic") after loading since that params object is brought along. Since the scope of bundle at this point is more focused (to just preserve prediction) I agree that xgb.save.raw() is the best option. :)