Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SPARK-16697][ML][MLLIB] improve LDA submitMiniBatch method to avoid …
…redundant RDD computation ## What changes were proposed in this pull request? In `LDAOptimizer.submitMiniBatch`, do persist on `stats: RDD[(BDM[Double], List[BDV[Double]])]` and also move the place of unpersisting `expElogbetaBc` broadcast variable, to avoid the `expElogbetaBc` broadcast variable to be unpersisted too early, and update previous `expElogbetaBc.unpersist()` into `expElogbetaBc.destroy(false)` ## How was this patch tested? Existing test. Author: WeichenXu <[email protected]> Closes apache#14335 from WeichenXu123/improve_LDA.
- Loading branch information