Support early stopping with training continuation, correct num boosted rounds. (#6506)
* Implement early stopping with training continuation. * Add new C API for obtaining boosted rounds. * Fix off by 1 in `save_best`. Co-authored-by: Philip Hyunsu Cho <chohyu01@cs.washington.edu>
This commit is contained in:
@@ -46,7 +46,7 @@ class TestEarlyStopping:
|
||||
@staticmethod
|
||||
def assert_metrics_length(cv, expected_length):
|
||||
for key, value in cv.items():
|
||||
assert len(value) == expected_length
|
||||
assert len(value) == expected_length
|
||||
|
||||
@pytest.mark.skipif(**tm.no_sklearn())
|
||||
def test_cv_early_stopping(self):
|
||||
|
||||
Reference in New Issue
Block a user