GitHub user mgaido91 opened a pull request: https://github.com/apache/spark/pull/20364
[SPARK-23166][ML] Add maxDF to CountVectorizer ## What changes were proposed in this pull request? It might be useful to also have a maxDF parameter in CountVectorizer. It might be used as a threshold for filtering all the terms that occur very frequently in a text corpus, because they are not very informative or could even be stop-words. This is analogous to scikit-learn, CountVectorizer, max_df. ## How was this patch tested? added UTs You can merge this pull request into a Git repository by running: $ git pull https://github.com/mgaido91/spark SPARK-23166 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/20364.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #20364 ---- commit f01f1cabbed710301fd6837a101f36f2c5d8e1fc Author: Marco Gaido <marcogaido91@...> Date: 2018-01-23T15:54:12Z [SPARK-23166][ML] Add maxDF to CountVectorizer ---- --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org