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

SharpLearning can only load models trained in python with xgboost==0.82 #152

Open
marict opened this issue Feb 22, 2024 · 3 comments
Open

Comments

@marict
Copy link

marict commented Feb 22, 2024

I have been unable to get SharpLearning to load any models trained in python with xgboost > 0.82 without getting an error on load. It seems that there was some breaking change on 0.82.

@mdabros
Copy link
Owner

mdabros commented Feb 24, 2024

Hi @marict,

Might be. SharpLearning is limited by the version used in https://github.com/PicNet/XGBoost.Net since it just wraps that library. You can try to encourage them to update to the latest version. If this is done, I will be happy to update SharpLearning to use the new version.

@madskonradsen
Copy link

@marict See #156 :)

@mdabros
Copy link
Owner

mdabros commented Oct 16, 2024

@marict Eventually, I will switch SharpLearning to use XGBoostSharp instead of XGBoost.Net. XGBoostSharp currently targets xgboost 2.0, so should be able to open a model trained with a newer version of xgboost. In the meantime you should be able to load and use the model by using XGBoostSharp directly. The interface is a bit more limited at the moment, but will be expanded over time.

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

3 participants