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?