GitHub user yongtang opened a pull request: https://github.com/apache/spark/pull/12079
[SPARK-14238][ML][MLLIB][PYSPARK] Add binary toggle Param to PySpark HashingTF in ML & MLlib ## What changes were proposed in this pull request? This fix tries to add binary toggle Param to PySpark HashingTF in ML & MLlib. If this toggle is set, then all non-zero counts will be set to 1. ## How was this patch tested? This fix adds two tests to cover the code changes. One for HashingTF in PySpark's ML and one for HashingTF in PySpark's MLLib. You can merge this pull request into a Git repository by running: $ git pull https://github.com/yongtang/spark SPARK-14238 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/12079.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 #12079 ---- commit e58d1a279aaded9045c9e7a7a161500163b81fd6 Author: Yong Tang <yong.tang.git...@outlook.com> Date: 2016-03-31T03:49:33Z [SPARK-14238][ML][MLLIB][PYSPARK] Add binary toggle Param to PySpark HashingTF in ML & MLlib This fix tries to add binary toggle Param to PySpark HashingTF in ML & MLlib. If this toggle is set, then all non-zero counts will be set to 1. This fix adds two tests to cover the code changes. One for HashingTF in PySpark's ML and one for HashingTF in PySpark's MLLib. ---- --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org