Replace all uses of deprecated function sklearn.datasets.load_boston (#7373)
* Replace all uses of deprecated function sklearn.datasets.load_boston * More renaming * Fix bad name * Update assertion * Fix n boosted rounds. * Avoid over regularization. * Rebase. * Avoid over regularization. * Whac-a-mole Co-authored-by: fis <jm.yuan@outlook.com>
This commit is contained in:
committed by
GitHub
parent
b4340abf56
commit
c621775f34
@@ -45,8 +45,8 @@ def test_sklearn_demo():
|
||||
script = os.path.join(PYTHON_DEMO_DIR, 'sklearn_examples.py')
|
||||
cmd = ['python', script]
|
||||
subprocess.check_call(cmd)
|
||||
assert os.path.exists('best_boston.pkl')
|
||||
os.remove('best_boston.pkl')
|
||||
assert os.path.exists('best_calif.pkl')
|
||||
os.remove('best_calif.pkl')
|
||||
|
||||
|
||||
@pytest.mark.skipif(**tm.no_sklearn())
|
||||
|
||||
Reference in New Issue
Block a user