Repository navigation
[MRG+2] EXA Get rid of warnings in plot_svm_anova.py - #11588
Merged
Merged
Conversation
TomDLT
approved these changes
Jul 17, 2018
Member
There was a problem hiding this comment.
LGTM for removing the warnings.
About the goal of this example, it seems that the non-informative features are not scaled as the original features, so they don't disturb to much the SVC. Moreover, the low number of samples make the feature selection choose some non-informative feature instead of the informative ones.
Increasing the number of samples (e.g. 500) and the noise scaling (e.g. 10) gives a nice maximum for low percentiles. Note that we could probably reduce the number of non-informative features (e.g. 64) for a nicer example.
GaelVaroquaux
approved these changes
Jul 17, 2018
GaelVaroquaux
left a comment
Member
There was a problem hiding this comment.
LGTM.
+1 for merge once the CI is green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #11565


old example(master):
new example(my PC):
But I fail to understand the example. The example claims that "This example shows how to perform univariate feature selection ... to improve the classification scores", but we actually get highest accuracy with all the features (including the non-informative features added to the datasets)? If we select number of features equal to the original dataset, we only get 20%-30% accuracy through cross validation?