Github user mengxr commented on a diff in the pull request:
https://github.com/apache/spark/pull/8190#discussion_r37055244
--- Diff:
mllib/src/test/java/org/apache/spark/mllib/clustering/JavaLDASuite.java ---
@@ -126,8 +128,12 @@ public Boolean call(Tuple2<Long, Vector> tuple2) {
assertEquals(topicDistributions.count(), nonEmptyCorpus.count());
// Check: javaTopTopicsPerDocuments
- JavaRDD<scala.Tuple3<java.lang.Long, int[], java.lang.Double[]>>
topTopics =
- model.javaTopTopicsPerDocument(3);
--- End diff --
This check is not sufficient due to runtime type erasure. We need to pick
out the elements.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]