XGBoost4J-Spark-GPU Tutorial
XGBoost4J-Spark-GPU is an open source library aiming to accelerate distributed XGBoost training on Apache Spark cluster from end to end with GPUs by leveraging the RAPIDS Accelerator for Apache Spark product.
This tutorial will show you how to use XGBoost4J-Spark-GPU.
Build an ML Application with XGBoost4J-Spark-GPU
Add XGBoost to Your Project
Prior to delving into the tutorial on utilizing XGBoost4J-Spark-GPU, it is advisable to refer to Installation from Maven repository for instructions on adding XGBoost4J-Spark-GPU as a project dependency. We offer both stable releases and snapshots for your convenience.
Data Preparation
In this section, we use the Iris dataset as an example to showcase how we use Apache Spark to transform a raw dataset and make it fit the data interface of XGBoost.
The Iris dataset is shipped in CSV format. Each instance contains 4 features, “sepal length”, “sepal width”, “petal length” and “petal width”. In addition, it contains the “class” column, which is essentially the label with three possible values: “Iris Setosa”, “Iris Versicolour” and “Iris Virginica”.