GitHub user WeichenXu123 opened a pull request: https://github.com/apache/spark/pull/14950
[SPARK-17390][ML][MLLib] Optimize MultivariantOnlineSummerizer by making the summarized target configurable ## What changes were proposed in this pull request? add a mask parameter to `MultivariantOnlineSummerizer` constructor. it can be the following values now: meanMask varianceMask minMask maxMask numNonZerosMask so that we can config the summarized targets in the following way: `new MultivariantOnlineSummerizer(meanMask|varianceMask)` it represent this summarizer will only compute mean and variance. ## How was this patch tested? unit test added. You can merge this pull request into a Git repository by running: $ git pull https://github.com/WeichenXu123/spark optimize_MultivariantOnlineSummerizer Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/14950.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 #14950 ---- commit 834bce992bf89e6e2e5886e6ab9e34c3752d8af4 Author: WeichenXu <weichenxu...@outlook.com> Date: 2016-09-01T01:41:03Z update. commit dc44bb974f3969ab70032e947dd9e06b87e317db Author: WeichenXu <weichenxu...@outlook.com> Date: 2016-09-02T19:56:25Z update ---- --- 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