[Breaking] Remove learning_rates in Python. (#5155)

* Remove `learning_rates`.

It's been deprecated since we have callback.

* Set `before_iteration` of `reset_learning_rate` to False to preserve 
  the initial learning rate, and comply to the term "reset".

Closes #4709.

* Tests for various `tree_method`.
This commit is contained in:
Jiaming Yuan
2019-12-24 14:25:48 +08:00
committed by GitHub
parent 73b1bd2789
commit 298ebe68ac
5 changed files with 75 additions and 34 deletions

View File

@@ -3,7 +3,7 @@ import unittest
import sys
sys.path.append("tests/python")
# Don't import the test class, otherwise they will run twice.
import test_interaction_constraints as test_ic
import test_interaction_constraints as test_ic # noqa
rng = np.random.RandomState(1994)