I have a set of features: x1, x2, x3. Furthermore, I have a set of labels: y1, y2, y3.
For example, my x variables are height, weight and years of education. Each Yi represents a grade in the following fields: Science, Arts and Management. Each student is assigned with a grade for the co responsive field (Science, Arts, Management). I'd like to use the xgboost algorithm to identify the class with minimum score. For example, if the marks are (10, 25, 5), then the algorithm should predict the class as y3. How can I customize my objective function to achieve this task. I am an R user