cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Community Platform Discussions
Connect with fellow community members to discuss general topics related to the Databricks platform, industry trends, and best practices. Share experiences, ask questions, and foster collaboration within the community.
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

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group