-
Notifications
You must be signed in to change notification settings - Fork 875
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature range parameter support #1044
base: master
Are you sure you want to change the base?
Feature range parameter support #1044
Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #1044 +/- ##
==========================================
- Coverage 77.27% 77.19% -0.08%
==========================================
Files 200 200
Lines 11308 11321 +13
Branches 1484 1487 +3
==========================================
+ Hits 8738 8739 +1
- Misses 2351 2362 +11
- Partials 219 220 +1
☔ View full report in Codecov by Sentry. |
Thanks a lot for the PR! If you have time, could you add a few unit tests to make sure it works as intended? |
Hello @rasbt, Actually I am very new to open source and this is the first repo that I am contributing to. So could you please elaborate on how to add unit tests and possibly share some resources? Thank you. |
I was just wandering and noticed your comment. You should add a test function in https://github.com/rasbt/mlxtend/blob/master/mlxtend/feature_selection/tests/test_exhaustive_feature_selector.py I think @rasbt can definitely explain better when he gets a chance to get back to you. In the meantime, you may just go through the test functions in the provided link to better understand how tests are written. |
@namanmistry Do you need further help with this? |
Description
As described in the issue
Replace min_features and max_features in ExhaustiveFeatureSelector by feature_range and recipe
#260 I have added support for new parameterfeature_range
in classExhaustiveFeatureSelector
. The priority of the parameters is still the same so it does not break the code base.Related issues or pull requests
Fixes ``Replace min_features and max_features in ExhaustiveFeatureSelector by feature_range and recipe
#260 partially. still
recipe` parameter is remaining.Pull Request Checklist
./docs/sources/CHANGELOG.md
file (if applicable)./mlxtend/*/tests
directories (if applicable)PYTHONPATH='.' pytest ./mlxtend -sv
and make sure that all unit tests pass (for small modifications, it might be sufficient to only run the specific test file, e.g.,PYTHONPATH='.' pytest ./mlxtend/classifier/tests/test_stacking_cv_classifier.py -sv
)flake8 ./mlxtend