cancel
Showing results for 
Search instead for 
Did you mean: 
Get Started Discussions
cancel
Showing results for 
Search instead for 
Did you mean: 

xgboost.spark.core' has no attribute 'SparkXGBClassifierModel'

Geebigib
New Contributor

I got error: xgboost.spark.core' has no attribute 'SparkXGBClassifierModel' when attempting to load model. I have upgraded to xgboost-2.0.0.

1 REPLY 1

Kaniz
Community Manager
Community Manager

Hi @GeebigibThe error you're experiencing is likely because the SparkXGBClassifierModel class is no longer available in the xgboost.spark.core module in xgboost-2.0.0. This could be due to changes or deprecations in the newer versions of the library. 

sparkdl.xgboost - It is deprecated starting with 12.0 ML and removed in 13.0 ML and above. Databricks recommends migrating your workloads to xgboost.spark.

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.