Philip Hyunsu Cho 3564b68b98
Fix #3397: early_stop callback does not maximize metric of form NDCG@n- (#3685)
* Fix #3397: early_stop callback does not maximize metric of form NDCG@n-

Early stopping callback makes splits with '-' letter, which interferes
with metrics of form NDCG@n-. As a result, XGBoost tries to minimize
NDCG@n-, where it should be maximized instead.

Fix. Specify maxsplit=1.

* Python 2.x compatibility fix
2018-09-08 19:46:25 -07:00
..
2018-08-22 18:59:30 -07:00
2018-09-06 20:43:17 -07:00
2018-08-22 18:59:30 -07:00
2018-08-13 01:38:37 -07:00