Commit ba3aa8f
[SPARK-5714][Mllib] Refactor initial step of LDA to remove redundant operations
The `initialState` of LDA performs several RDD operations that looks redundant. This pr tries to simplify these operations.
Author: Liang-Chi Hsieh <viirya@gmail.com>
Closes #4501 from viirya/sim_lda and squashes the following commits:
4870fe4 [Liang-Chi Hsieh] For comments.
9af1487 [Liang-Chi Hsieh] Refactor initial step of LDA to remove redundant operations.
(cherry picked from commit f86a89a)
Signed-off-by: Xiangrui Meng <meng@databricks.com>1 parent 63af90c commit ba3aa8f
File tree
1 file changed
+13
-24
lines changed- mllib/src/main/scala/org/apache/spark/mllib/clustering
1 file changed
+13
-24
lines changedLines changed: 13 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
453 | | - | |
454 | | - | |
455 | | - | |
456 | | - | |
457 | | - | |
458 | | - | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
459 | 462 | | |
460 | | - | |
461 | | - | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
| 463 | + | |
475 | 464 | | |
476 | | - | |
477 | | - | |
| 465 | + | |
| 466 | + | |
478 | 467 | | |
479 | 468 | | |
480 | | - | |
| 469 | + | |
481 | 470 | | |
482 | 471 | | |
483 | 472 | | |
| |||
0 commit comments