xgb.max_kappa: xgboost evaluation metric for maximum Kappa statistic
Description
This function allows xgboost to use a custom thresholding method to maximize the Kappa statistic. You can use this function via eval_metric. It leaks memory over time, but it can be reclaimed using gc().