diff options
author | Xiangrui Meng <meng@databricks.com> | 2014-05-15 11:59:59 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-05-15 11:59:59 -0700 |
commit | d52761d67f42ad4d2ff02d96f0675fb3ab709f38 (patch) | |
tree | e46abacebabaaa5135e0b64d87f2ee6b408ac512 /mllib/pom.xml | |
parent | 94c9d6f59859ebc77fae112c2c42c64b7a4d7f83 (diff) | |
download | spark-d52761d67f42ad4d2ff02d96f0675fb3ab709f38.tar.gz spark-d52761d67f42ad4d2ff02d96f0675fb3ab709f38.tar.bz2 spark-d52761d67f42ad4d2ff02d96f0675fb3ab709f38.zip |
[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
Author: Xiangrui Meng <meng@databricks.com>
Closes #670 from mengxr/predict-javardd and squashes the following commits:
b77ccd8 [Xiangrui Meng] Merge branch 'master' into predict-javardd
43caac9 [Xiangrui Meng] add predict(JavaRDD) to RegressionModel, ClassificationModel, and KMeans
Diffstat (limited to 'mllib/pom.xml')
0 files changed, 0 insertions, 0 deletions