GitHub user zhengruifeng opened a pull request:
https://github.com/apache/spark/pull/19232
[SPARK-22009][ML] Using treeAggregate improve some algs
## What changes were proposed in this pull request?
I test on a dataset of about 10M instances, and found that using
`treeAggregate` give a speedup in following algs:
|Algs| SpeedUp |
|------|-----------|
|OneHotEncoder| 5% |
|StatFunctions.calculateCov| 13% |
|StatFunctions.multipleApproxQuantiles| 9% |
|RegressionEvaluator| 8% |
## How was this patch tested?
existing tests
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/zhengruifeng/spark use_treeAggregate
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/19232.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 #19232
----
commit 0c3ed2d1c6fdbe53b4adc8e257e379167ef2de94
Author: Zheng RuiFeng <[email protected]>
Date: 2017-09-14T08:37:09Z
create pr
----
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]