Skip to content
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

An explicit function for creating a resusable XGBoost model #779

Closed
CarmenCiardiello opened this issue Aug 1, 2022 · 4 comments
Closed

Comments

@CarmenCiardiello
Copy link

Saving XGBoost worklfow

I have a couple of xgboost models in production that are saved as workflow objects in a RDS file. There seems to be some compatibility issues with the the updated version of xgboost. Not sure what/if there is a remedy to this, but having a function to explicitly save the workflow object as something this is reusable and compatible with xgboost.

@CarmenCiardiello CarmenCiardiello changed the title An explicit function for creating a resusable XGBoost mode An explicit function for creating a resusable XGBoost model Aug 1, 2022
@simonpcouch
Copy link
Contributor

Thanks for the issue, @CarmenCiardiello!

For now, xgboost models fitted with parsnip (and possible wrappers like workflows, workflowsets, stacks) will be susceptible to the kind of instability across versions noted in the xgboost documentation on saving and memory snapshots.

We're actively working on better infrastructure for supporting native serialization like xgboost's xgb.save(). That work currently lives at https://github.com/simonpcouch/bundle if you'd like to follow our development, but we will be integrating this functionality under the hood in objects outputted by tidymodels packages soon.

@CarmenCiardiello
Copy link
Author

Thanks for pointing me in this direction!

@simonpcouch
Copy link
Contributor

Closing in favor of #781. Thanks for the issue!

@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants