cancel
Showing results for 
Search instead for 
Did you mean: 
Machine Learning
Dive into the world of machine learning on the Databricks platform. Explore discussions on algorithms, model training, deployment, and more. Connect with ML enthusiasts and experts.
cancel
Showing results for 
Search instead for 
Did you mean: 

Forum Posts

MichaelO
by New Contributor III
  • 10460 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...

  • 10460 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
  • 7456 Views
  • 1 replies
  • 1 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.

  • 7456 Views
  • 1 replies
  • 1 kudos
Latest Reply
Direo
Contributor
  • 1 kudos

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

  • 1 kudos
Labels