Hello,
I have an ML model that was saved as a pickle in the local computer āmodel.pklā
However, when I try to apply this model on new data, it gives me the error:
XGBoostError: [13:38:10] C:\Users\Administrator\workspace\xgboost-win64_release_1.1.0\include\xgboost/json.h:65: Invalid cast, from Null to Array
I tried also by putting everything on github, my code and the model. I load my model like this:
model_from_joblib = joblib.load(ādefault_class_model.pklā)
Where ādefault_class_model.pklā is also inside my Github repository. I get the same error. Is this having to do with how I am loading ādefault_class_model.jsonā? how should I load it otherwise?
Thanks
I can only guessā¦
Probably you are using too old xgboost version (1.1.0) , since support for JSON was introduced in xgboost version 1.3
Can you share your github repo link?
I checked and I trained my model is in the latest xgboost version. I also made sure to deploy the app on the latest python version 3.9 (although my model is trained on 3.10 )