GitHub user mengxr opened a pull request:
https://github.com/apache/spark/pull/670
[SPARK-1741][MLLIB] add predict(JavaRDD) to RegressionModel,
ClassificationModel, and KMeans
`model.predict` returns a RDD of Scala primitive type (Int/Double), which
is recognized as Object in Java. Adding predict(JavaRDD) could make life easier
for Java users.
Added tests for KMeans, LinearRegression, and NaiveBayes.
Will update examples after https://github.com/apache/spark/pull/653 gets
merged.
cc: @srowen
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/mengxr/spark predict-javardd
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/670.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #670
----
commit 43caac9d8b245f8de2f8766fe0ac35368dad9cb8
Author: Xiangrui Meng <[email protected]>
Date: 2014-05-06T21:26:38Z
add predict(JavaRDD) to RegressionModel, ClassificationModel, and KMeans
----
---
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.
---