Uh oh!
There was an error while loading. Please reload this page.
[SPARK-16843][MLLIB] add the percentage ChiSquareSelector feature - #14449
[SPARK-16843][MLLIB] add the percentage ChiSquareSelector feature#14449mpjlu wants to merge 1 commit into
Conversation
AmplabJenkins
commented
Aug 2, 2016
Can one of the admins verify this patch? |
srowen
commented
Aug 2, 2016
I'm not sure it's worth a whole other API method for this. If you want to select 10% of features, you can trivially ask for 0.1 * numFeatures features from the selector. |
mpjlu
commented
Aug 3, 2016
Hi @srowen, thanks for your comment. |
mpjlu
commented
Aug 4, 2016
Hi @srowen , I also plan to submit some PR about feature selection methods based on univariate statistical test, like the methods in scikit-learn: SelectFpr (using false positive rate), SelectFdr ( using false discovery rate), and SelectFwe (family wise error ). |
hqzizania
commented
Aug 4, 2016
Percentage is a useful addition to ChiSquareSelector, it is a common and intuitive param to data scientists and statistician as scikit-learn has, but it may be not worthy a whole other API in MLlib indeed. @srowen I suppose it could be implemented by adding a new Param in ML.ChiSqSelector? |
MLnick
commented
Aug 5, 2016
If anything it could be a Param in the |
MLnick
commented
Aug 5, 2016
As for other feature selection methods, feel free to create a JIRA to discuss. Some work has been done outside of Spark in packages - e.g. https://github.com/sramirez/spark-infotheoretic-feature-selection. Generally I think this is a good place for that kind of work to start - I don't think it necessarily must be in Spark itself. If usage and performance is high, it can always be considered for inclusion later on. |
srowen
commented
Aug 14, 2016
I'd like to close this in favor of the changes in #14597 because I think it would actually lead towards making this functionality trivial to expose from the model class. |
Closesapache#10995Closesapache#13658Closesapache#14505Closesapache#14536Closesapache#12753Closesapache#14449Closesapache#12694Closesapache#12695Closesapache#14810
What changes were proposed in this pull request?
Now, there is only numTopFeatures Param in ChiSquareSelector. In practice, it is convenience to use the percentage as the Param.
We add the percentage Param for ChiSquareSelector in this PR.
How was this patch tested?
add scala ut