Skip to content

Commit 3a06526

Browse files
committed
merge with new example
1 parent 0dd3947 commit 3a06526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/src/main/java/org/apache/spark/examples/mllib/JavaLDAExample.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public Tuple2<Long, Vector> call(Tuple2<Vector, Long> doc_id) {
5858
corpus.cache();
5959

6060
// Cluster the documents into three topics using LDA
61-
DistributedLDAModel ldaModel = new LDA().setK(3).run(corpus);
61+
DistributedLDAModel ldaModel = (DistributedLDAModel) new LDA().setK(3).run(corpus);
6262

6363
// Output topics. Each is a distribution over words (matching word count vectors)
6464
System.out.println("Learned topics (as distributions over vocab of " + ldaModel.vocabSize()

0 commit comments

Comments
 (0)