I\'m having a lot of trouble figuring out how to correctly set the num_classes for xgboost.
I\'ve got an example using the Iris data
df <- iris
label must be in [0, num_class) in your script add y<-y-1 before model <-...
y<-y-1
model <-...