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
Added min_features variable to RFECV example #18091
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the PR @eschibli !
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One can run
./build_tools/circle/linting.sh
to see the flake errors locally.
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
Thanks Thomas, that is helpful. I will do that first next time. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@thomasjpfan are any further actions from me required to merge the changes? |
We need to wait for another reviewer to approve. |
Ah okay |
LGTM Thanks @eschibli |
…rn#18091) Co-authored-by: Thomas J. Fan <thomasjpfan@gmail.com>
The current example code for
sklearn.feature_selection.RFECV
produces confusing results if a non-default min_features_to_select parameter is added, as the example plot will be produced with an incorrect axis. Since it is not clear that the 1s inplt.plot(range(1, len(rfecv.grid_scores_) + 1), rfecv.grid_scores_)
refer to the defaultmin_features_to_select
I believe it would be more informative if this were made explicit.This is my first pull request to a public repo, so please let me know if I'm being an ass or otherwise violating etiquette.