bundle icon indicating copy to clipboard operation
bundle copied to clipboard

unbundle issue with XGBoost models

Open lanedrew opened this issue 1 month ago • 1 comments

When using the unbundle function on a bundled XGBoost model, even after the 0.1.3 update, there is an error associated with the argument as_booster which has become deprecated.

Below is an example of the output received when attempting to unbundle a model after loading the bundled model object:

Load the example mark model that previously was trained on the small example data

file_path <- system.file("extdata", "example_mark_model.rds", package = "ldmppr") mark_model <- bundle::unbundle(readRDS(file_path)) Error in xgboost::xgb.load.raw(object, as_booster = TRUE) : unused argument (as_booster = TRUE) Calls: <Anonymous> ... <Anonymous> -> unbundle -> unbundle.bundle -> <Anonymous> Execution halted

From what I can tell, just removing the as_booster argument should address the issue in the unbundle function for XGBoost objects.

lanedrew avatar Dec 21 '25 19:12 lanedrew