Scalable, Portable and Distributed Gradient Boosting (GBDT, GBRT or GBM) Library, for Python, R, Java, Scala, C++ and more. Runs on single machine, Hadoop, Spark, Dask, Flink and DataFlow
Saved the model using the following
with open(filemodel, 'wb') as f:
pickle.dump(model, f)
I am able to run the following lines to make prediciton
with open(filemodel, 'rb') as f:
xgb_srm = pickle.load(f)
pred= xgb_srm.predict(dtrain)
However, when I do and receive XGBoostError: basic_string::resize
param = {'colsample_bylevel': 0.5, ...}
model=xgb.Booster(param)
model.load_model(filemodel)
filemodel = 'xgboostModel.trail04.save'
Saved the model using the following with open(filemodel, 'wb') as f: pickle.dump(model, f)
I am able to run the following lines to make prediciton with open(filemodel, 'rb') as f: xgb_srm = pickle.load(f) pred= xgb_srm.predict(dtrain)
However, when I do and receive XGBoostError: basic_string::resize param = {'colsample_bylevel': 0.5, ...} model=xgb.Booster(param) model.load_model(filemodel)
Could you please have a look? Thanks!