scikit-learn/sklearn/feature_selection/tests
Olivier Grisel 2571cb2989
Improve validation messages with infinite data (#21219)
* Improve validation messages with infinite data

* Extend and fix validation tests

* Test and fix extended error message

* data_name => input_name

* Mention estimators that natively support missing values

* More informative error message

* cosmetic

* typo

* Fix broken tests

* Fix test_knn

* Add changelog entry

* Fix broken test for param search models

* Missing input names

* Allow Y and y in estimator checks

* Add missing input names

* Fix input_name for FunctionTransformer

* More missing input names

* Update test

* More test fixes on scores

* Simplify message to avoid to make generic fallback meaningful

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* More informative estimator checks failure messages

* Make sure the estimator name is passed correctly in _validate_data

* Simplify calls to _validate_data

* Handle estimator name in private _check_y helper

* More specific error message

* Add estimator to check_X_params and check_y_params

* Add .. versionadded flags in public docstrings

* Update changelog

* Improve _validate_data's docstring

* Typo in doc/whats_new/v1.1.rst

* Make _check_estimator_name return None if estimator == None

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>

* check_params dict updates with style

* Increase test coverage

Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2021-10-29 15:59:57 +02:00
..
__init__.py
test_base.py MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
test_chi2.py MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
test_feature_select.py MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
test_from_model.py MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
test_mutual_info.py MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
test_rfe.py API Replacing grid_scores_ by cv_results_ in _rfe.py and test_rfe.py (#20161) 2021-07-30 18:01:49 +02:00
test_sequential.py Improve validation messages with infinite data (#21219) 2021-10-29 15:59:57 +02:00
test_variance_threshold.py MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00