My data contains only two labels, open and close. When objective = "binary:logistic" is given to xgboost engine, the labels underlying in DMatrix are converted into 1 for close and 0 for open. How does parsnip handle the mapping? Is it possible to custom it so labels in DMatrix can use 0 for close and 1 for open?
Ok, event_level is the answer.