scikit-learn/sklearn/feature_selection
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
..
tests Improve validation messages with infinite data (#21219) 2021-10-29 15:59:57 +02:00
__init__.py MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
_base.py API Implements get_feature_names_out for transformers that support get_feature_names (#18444) 2021-09-07 10:56:57 +02:00
_from_model.py DOC Ensures that SelectFromModel passes numpydoc validation (#20988) 2021-09-09 11:08:58 +02:00
_mutual_info.py MNT Applies black formatting to most of the code base (#18948) 2021-06-17 14:21:09 -04:00
_rfe.py DOC ensure that RFE is passing numpydoc validation 2021-08-31 19:14:37 +02:00
_sequential.py DOC Ensures that SequentialFeatureSelector passes numpydoc validation (#21035) 2021-09-14 10:11:25 +02:00
_univariate_selection.py DOC Ensures that SelectFwe passes numpydoc validation (#20986) 2021-09-09 11:07:36 +02:00
_variance_threshold.py DOC Adds missing imports into examples and test them (#21186) 2021-09-29 13:51:33 +02:00