Repository: spark
Updated Branches:
  refs/heads/branch-1.4 31f5d53e9 -> 6834d1af4


[SPARK-7723] Fix string interpolation in pipeline examples

https://issues.apache.org/jira/browse/SPARK-7723

Author: Saleem Ansari <tux...@gmail.com>

Closes #6258 from tuxdna/master and squashes the following commits:

2bb5a42 [Saleem Ansari] Merge branch 'master' into mllib-pipeline
e39db9c [Saleem Ansari] Fix string interpolation in pipeline examples

(cherry picked from commit df34793ad4e76214fc4c0a22af1eb89b171a32e4)
Signed-off-by: Sean Owen <so...@cloudera.com>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/6834d1af
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/6834d1af
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/6834d1af

Branch: refs/heads/branch-1.4
Commit: 6834d1af4c370d6e5aa98d8d91d0cfff24e4a594
Parents: 31f5d53
Author: Saleem Ansari <tux...@gmail.com>
Authored: Tue May 19 10:31:11 2015 +0100
Committer: Sean Owen <so...@cloudera.com>
Committed: Tue May 19 10:31:20 2015 +0100

----------------------------------------------------------------------
 docs/ml-guide.md | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/6834d1af/docs/ml-guide.md
----------------------------------------------------------------------
diff --git a/docs/ml-guide.md b/docs/ml-guide.md
index b7b6376..cac7056 100644
--- a/docs/ml-guide.md
+++ b/docs/ml-guide.md
@@ -237,7 +237,7 @@ model2.transform(test.toDF)
   .select("features", "label", "myProbability", "prediction")
   .collect()
   .foreach { case Row(features: Vector, label: Double, prob: Vector, 
prediction: Double) =>
-    println("($features, $label) -> prob=$prob, prediction=$prediction")
+    println(s"($features, $label) -> prob=$prob, prediction=$prediction")
   }
 
 sc.stop()
@@ -391,7 +391,7 @@ model.transform(test.toDF)
   .select("id", "text", "probability", "prediction")
   .collect()
   .foreach { case Row(id: Long, text: String, prob: Vector, prediction: 
Double) =>
-    println("($id, $text) --> prob=$prob, prediction=$prediction")
+    println(s"($id, $text) --> prob=$prob, prediction=$prediction")
   }
 
 sc.stop()


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@spark.apache.org
For additional commands, e-mail: commits-h...@spark.apache.org

Reply via email to