scikit-learn/sklearn/feature_selection
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
..
tests ENH Enable percentage for n_features_to_select in RFE(Fix PR #16228) (#17090) 2020-06-26 22:40:25 -04:00
__init__.py FIX Expose SelectorMixin through sklearn/feature_selection/ (#16132) 2020-01-17 15:37:26 +01:00
_base.py DOC Standarize default documentation for feature_selection (#17465) 2020-06-07 17:27:36 +02:00
_from_model.py DOC Standarize default documentation for feature_selection (#17465) 2020-06-07 17:27:36 +02:00
_mutual_info.py DOC Standarize default documentation for feature_selection (#17465) 2020-06-07 17:27:36 +02:00
_rfe.py ENH Enable percentage for n_features_to_select in RFE(Fix PR #16228) (#17090) 2020-06-26 22:40:25 -04:00
_univariate_selection.py MNT Replaces numpy alias with builtin typse (#17687) 2020-06-24 16:51:51 +02:00
_variance_threshold.py DOC Standarize default documentation for feature_selection (#17465) 2020-06-07 17:27:36 +02:00