-
- Downloads
[MRG+1] Accept keyword parameters to hyperparameter search fit methods (#8278)
* ENH Accept keyword parameters to hyperparameter search fit methods Deprecate ``fit_params`` as a constructor argument to the hyperparameter search classes and instead accept keyword parameters to the ``fit`` methods. This makes the ``fit`` methods of these functions conform to the Estimator API and allows the use of hyperparameter search functions in other CV utility functions such as ``cross_val_predict``. * CR: Expanded tests, remove deprecated use in Ridge * Make tests consistent in Python 2 and 3
Showing
- doc/whats_new.rst 11 additions, 0 deletionsdoc/whats_new.rst
- sklearn/linear_model/ridge.py 10 additions, 12 deletionssklearn/linear_model/ridge.py
- sklearn/linear_model/tests/test_ridge.py 2 additions, 4 deletionssklearn/linear_model/tests/test_ridge.py
- sklearn/model_selection/_search.py 18 additions, 10 deletionssklearn/model_selection/_search.py
- sklearn/model_selection/tests/test_search.py 69 additions, 0 deletionssklearn/model_selection/tests/test_search.py
- sklearn/utils/mocking.py 12 additions, 3 deletionssklearn/utils/mocking.py
Loading
Please register or sign in to comment