[breaking] Remove label encoder deprecated in 1.3. (#7357)

This commit is contained in:
Jiaming Yuan
2021-10-28 13:24:29 +08:00
committed by GitHub
parent d05754f558
commit 3c4aa9b2ea
7 changed files with 74 additions and 83 deletions

View File

@@ -146,8 +146,10 @@ class TestPickling:
os.remove(model_path)
@pytest.mark.skipif(**tm.no_sklearn())
def test_predict_sklearn_pickle(self):
x, y = build_dataset()
from sklearn.datasets import load_digits
x, y = load_digits(return_X_y=True)
kwargs = {'tree_method': 'gpu_hist',
'predictor': 'gpu_predictor',