spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Yannakopoulos (JIRA)" <>
Subject [jira] [Commented] (SPARK-1945) Add full Java examples in MLlib docs
Date Sun, 29 Jun 2014 01:52:24 GMT


Michael Yannakopoulos commented on SPARK-1945:

Nevermind, I found the solution after seeing the bytecode (via javap command). The *BinaryClassificationMetrics*
should be given an attribute of type: JavaRDD<Tuple2<Object, Object>>.

Thanks again,

> Add full Java examples in MLlib docs
> ------------------------------------
>                 Key: SPARK-1945
>                 URL:
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Documentation, MLlib
>            Reporter: Matei Zaharia
>              Labels: Starter
>             Fix For: 1.0.0
> Right now some of the Java tabs only say the following:
> "All of MLlib’s methods use Java-friendly types, so you can import and call them there
the same way you do in Scala. The only caveat is that the methods take Scala RDD objects,
while the Spark Java API uses a separate JavaRDD class. You can convert a Java RDD to a Scala
one by calling .rdd() on your JavaRDD object."
> Would be nice to translate the Scala code into Java instead.
> Also, a few pages (most notably the Matrix one) don't have Java examples at all.

This message was sent by Atlassian JIRA

View raw message