Repository: spark Updated Branches: refs/heads/branch-1.2 26410a2d3 -> f9d8c5e3f
SPARK-5819 Backported the fix described in SPARK-5805 Fixes SPARK-5819 Author: Emre Sevinç <emre.sev...@gmail.com> Closes #4605 from emres/SPARK-5819 and squashes the following commits: 33bd4b6 [Emre Sevinç] SPARK-5819 Backported the fix described in SPARK-5805 Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/f9d8c5e3 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/f9d8c5e3 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/f9d8c5e3 Branch: refs/heads/branch-1.2 Commit: f9d8c5e3f829b115aa5903814110850e0ac89c77 Parents: 26410a2 Author: Emre Sevinç <emre.sev...@gmail.com> Authored: Sat Feb 14 15:06:45 2015 +0000 Committer: Sean Owen <so...@cloudera.com> Committed: Sat Feb 14 15:06:45 2015 +0000 ---------------------------------------------------------------------- docs/mllib-clustering.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/f9d8c5e3/docs/mllib-clustering.md ---------------------------------------------------------------------- diff --git a/docs/mllib-clustering.md b/docs/mllib-clustering.md index c696ae9..7cfffd4 100644 --- a/docs/mllib-clustering.md +++ b/docs/mllib-clustering.md @@ -230,7 +230,7 @@ the predicted cluster assignments on new data points as they arrive. {% highlight scala %} model.trainOn(trainingData) -model.predictOnValues(testData).print() +model.predictOnValues(testData.map(lp => (lp.label, lp.features))).print() ssc.start() ssc.awaitTermination() --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org For additional commands, e-mail: commits-h...@spark.apache.org