scikit-learn/sklearn/feature_selection/tests
Lisa Schwetlick 911137f0de
ENH Enable percentage for n_features_to_select in RFE(Fix PR #16228) (#17090)
* added code from PR #14627

* fixed error handling None as n_features_to_select

* added test for error message and percentage passing

* linting

* more linting

* even more linting

* sklearn/feature_selection/_rfe.py make int casting simpler

Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>

* exchange redundant test case with small float

* add what's new

* removed useless import

* lint

* Fix whats_new/v0.24.rst

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

* move whats new section

* disambiguate choice between 1 feature and 100% of features

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

* move checking for negatives to _fit

* update error to include nones

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

* markdown style in what's new

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

* Update sklearn/feature_selection/tests/test_rfe.py

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

* forgot to delete line

* fix test for negative n_features error

* BUG Fixes issues

* added case for float >1 and more detailed error messages

* lint

* more lint

* more lint

* CLN Minor adjustments

* BLD Force build on ci

Co-authored-by: Roman Yurchak <rth.yurchak@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
2020-06-26 22:40:25 -04:00
..
__init__.py Move project directory from scikits.learn to sklearn 2011-09-02 12:06:57 +02:00
test_base.py API kwonly for utils (#17046) 2020-04-27 15:42:01 +02:00
test_chi2.py MNT Make modules private in feature_selection (#15376) 2019-10-29 11:00:32 +08:00
test_feature_select.py MNT Replaces numpy alias with builtin typse (#17687) 2020-06-24 16:51:51 +02:00
test_from_model.py ENH add importance_getter to RFE* and SelectFromModel 2020-05-20 16:15:32 +10:00
test_mutual_info.py MNT Make modules private in feature_selection (#15376) 2019-10-29 11:00:32 +08:00
test_rfe.py ENH Enable percentage for n_features_to_select in RFE(Fix PR #16228) (#17090) 2020-06-26 22:40:25 -04:00
test_variance_threshold.py TST Fix unreachable code in tests (#16110) 2020-02-16 14:41:26 +01:00