Skip to content

loding old workflow with R Xgboost 1.5.2.1 #1266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ZWael opened this issue Mar 21, 2025 · 0 comments
Open

loding old workflow with R Xgboost 1.5.2.1 #1266

ZWael opened this issue Mar 21, 2025 · 0 comments

Comments

@ZWael
Copy link

ZWael commented Mar 21, 2025

Hello,
I had saved a tidymodel workflow using Xgboost 1.5.2.1 in rdata file using the save() function.
recently i was forced to passe to xgboost 1.7.8.1
I was able to load the workflow and make prediction
but having some warning (see below) when using the predict function recommending to :
export the model by calling Booster.save_model from the old version first, then load it back in current version
which will not save the workflow ...

What is the best way to save and load a workflow implementing Xgboost 1.5.2.1

[12:47:27] WARNING: src/learner.cc:1203: 
  If you are loading a serialized model (like pickle in Python, RDS in R) generated by
  older XGBoost, please export the model by calling `Booster.save_model` from that version
  first, then load it back in current version. See:

    https://xgboost.readthedocs.io/en/latest/tutorials/saving_model.html

  for more details about differences between saving model and serializing.

[12:47:27] WARNING: src/learner.cc:888: Found JSON model saved before XGBoost 1.6, please save the model using current version again. The support for old JSON model will be discontinued in XGBoost 2.3.
[12:47:27] WARNING: src/learner.cc:553: 
  If you are loading a serialized model (like pickle in Python, RDS in R) generated by
  older XGBoost, please export the model by calling `Booster.save_model` from that version
  first, then load it back in current version. See:

    https://xgboost.readthedocs.io/en/latest/tutorials/saving_model.html

  for more details about differences between saving model and serializing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant