cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

MichaelO
by New Contributor III
  • 4663 Views
  • 3 replies
  • 1 kudos

XGBModel' object has no attribute 'feature_types'

I saved an xgboost boost model in filetstore as a pkl file.I call the model by the commands belowmodel = pickle.load(open('/.../model.pkl', 'rb'))model.predict_proba(df[features])The model has been running for sometime with the above commands but I n...

  • 4663 Views
  • 3 replies
  • 1 kudos
Latest Reply
Anonymous
Not applicable
  • 1 kudos

Hi @Michael Okelola​ Thank you for posting your question in our community! We are happy to assist you.To help us provide you with the most accurate information, could you please take a moment to review the responses and select the one that best answe...

  • 1 kudos
2 More Replies
Direo
by Contributor
  • 5511 Views
  • 4 replies
  • 2 kudos

Resolved! xgboost 1.5.1 gives 'XGBModel' object has no attribute 'enable_categorical' error

Should I pip install xgboost==1.4.2. (the last version it worked) or is there a better way to solve it having in mind that this solution might cause problems later if this version of xgboost is not supported on future python versions.

  • 5511 Views
  • 4 replies
  • 2 kudos
Latest Reply
Direo
Contributor
  • 2 kudos

Hi, @Kaniz Fatma​. No, I have found a solution. Needed to retrain models using new version of xgboost.

  • 2 kudos
3 More Replies
Labels