Description
Improvement: computation, memory usage
For ordered features, extractLeftRightNodeAggregates() computes pairs of cumulative sums. However, these sums are redundant since they are simply cumulative sums accumulating from the left and right ends, respectively. Only compute one sum.
For unordered features, the left and right aggregates are essentially the same data, copied from the original aggregates, but shifted by one index. Avoid copying data.
Attachments
Issue Links
- Is contained by
-
SPARK-3043 DecisionTree aggregation is inefficient
- Resolved