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

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

Direo
Contributor

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.

1 ACCEPTED SOLUTION

Accepted Solutions

Direo
Contributor

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

View solution in original post

4 REPLIES 4

Kaniz
Community Manager
Community Manager

Hi @Direo Direo​ , You might want to go through this doc. Please have a look.

Kaniz
Community Manager
Community Manager

Hi @Direo Direo​ , Just a friendly follow-up. Do you still need help? Please let us know.

Direo
Contributor

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

Kaniz
Community Manager
Community Manager

Hi @Direo Direo​ , Would you like to share the solution here?

Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.