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

Too long string #40

Open
itmayi opened this issue Mar 29, 2019 · 3 comments
Open

Too long string #40

itmayi opened this issue Mar 29, 2019 · 3 comments

Comments

@itmayi
Copy link

itmayi commented Mar 29, 2019

when i use XGBoostPredictor load one model to do a test, one exception happenned. How can i sovle it?

Predictor predictor = new Predictor(
                new `java.io.FileInputStream("./model/ransom.pickle"));

Exception in thread "main" java.io.IOException: Too long string: 7887331693998180980
at biz.k11i.xgboost.util.ModelReader.readString(ModelReader.java:185)
at biz.k11i.xgboost.Predictor.readParam(Predictor.java:108)
at biz.k11i.xgboost.Predictor.(Predictor.java:43)
at biz.k11i.xgboost.Predictor.(Predictor.java:26)
at HowToUseXgboostPredictor.main(HowToUseXgboostPredictor.java:16)

@ajolivard
Copy link

Hi, I have the same issue. Did you find out what the problem was ?

@popfido
Copy link

popfido commented Aug 22, 2019

I guess u guys save the model with a wrong format.

Predictor seems only accept models saved by booster

if you use sklearn.joblib to save or directly pickle it down, it may cannot be loaded coz its formatting is not acceptable

@mahezsh
Copy link

mahezsh commented Oct 15, 2019

@itmayi Hi, Did you find a workaround?

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

4 participants