cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Get Started Discussions
Start your journey with Databricks by joining discussions on getting started guides, tutorials, and introductory topics. Connect with beginners and experts alike to kickstart your Databricks experience.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Unable to import ml.dmlc.xgboost4j.scala.spark.XGBoostClassifier

dbxdbx_
New Contributor

Hi I am trying to use the Scala XGBoostClassifier on Databricks, inspiring by this https://www.youtube.com/watch?v=vD3k-moYgmU video shared by Dbx official account. But I couldn't import the library.

I followed the official tutorial https://docs.databricks.com/en/machine-learning/train-model/xgboost-scala.html and installed the scala package. Screenshot 2024-06-10 at 11.33.50 AM.png

However, when I imported this 'import ml.dmlc.xgboost4j.scala.spark.XGBoostClassifier' I got the error message 'ModuleNotFoundError: No module named 'ml.dmlc.xgboost4j.scala.spark.XGBoostClassifier''. Could you please shed light on how to correctly install this and import it? I would like to use the scala based XGBoost package to accelerate the computation. Thank you very much!

#xgboost #scala

0 REPLIES 0

Join Us as a Local Community Builder!

Passionate about hosting events and connecting people? Help us grow a vibrant local communityโ€”sign up today to get started!

Sign Up Now