For sbt projects
Get the appropriate catboost_spark_version (see available versions at Maven central).
Choose the appropriate spark_compat_version (2.x, 3.x, or 4.x where x is a minor release version) and scala_compat_version (2.11, 2.12 or 2.13, corresponding to versions supported by the particular Spark version).
Add dependency to build.sbt of your project:
libraryDependencies ++= Seq(
"ai.catboost" %% ("catboost-spark_" + sparkCompatVersion) + % "catboost_spark_version"
)
Was the article helpful?
Previous
Next