-
-
Notifications
You must be signed in to change notification settings - Fork 25.8k
DOC example on feature selection using negative tol
values
#26205
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
Conversation
Added the changes. |
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.
Looks reasonable to me, what do others think?
@@ -143,3 +143,67 @@ | |||
# attribute. The forward SFS is faster than the backward SFS because it only | |||
# needs to perform `n_features_to_select = 2` iterations, while the backward | |||
# SFS needs to perform `n_features - n_features_to_select = 8` iterations. | |||
|
|||
# %% | |||
# Selecting features using Sequential Feature Selection and negative tolerance values |
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.
This seems like a quite long title. My suggestion is to remove the title Discussion
to keep the text as part of the narrative of the Selecting features with Sequential Feature Selection
section. The this whole block can become a subsection called Using negative tolerance values
or something similar.
Added the changes |
Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
Yep, I included the changes using this. Its much better than using the command line :) |
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.
I think it may also be a good idea to display the roc_auc_score
in each iteration. For this you will have to add a LogisticRegression
step at the end of the pipeline.
Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
Added the ROC AUC scores. |
Thanks! Now it look really good! Just a final comment on my side, can you please print the |
Updated the ROC AUC scores to 3 decimal places. |
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, thanks @rprkh!
…learn#26205) Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
…learn#26205) Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
…learn#26205) Co-authored-by: Arturo Amor <86408019+ArturoAmorQ@users.noreply.github.com>
Reference Issues/PRs
Closes #25525
What does this implement/fix? Explain your changes.
Includes an example that demonstrates feature selection using
SequentialFeatureSelector
with negative values oftol
.Any other comments?