You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by sr...@apache.org on 2015/05/19 11:31:15 UTC
spark git commit: [SPARK-7723] Fix string interpolation in pipeline
examples
Repository: spark
Updated Branches:
refs/heads/master 27fa88b9b -> df34793ad
[SPARK-7723] Fix string interpolation in pipeline examples
https://issues.apache.org/jira/browse/SPARK-7723
Author: Saleem Ansari <tu...@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
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/df34793a
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/df34793a
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/df34793a
Branch: refs/heads/master
Commit: df34793ad4e76214fc4c0a22af1eb89b171a32e4
Parents: 27fa88b
Author: Saleem Ansari <tu...@gmail.com>
Authored: Tue May 19 10:31:11 2015 +0100
Committer: Sean Owen <so...@cloudera.com>
Committed: Tue May 19 10:31:11 2015 +0100
----------------------------------------------------------------------
docs/ml-guide.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/df34793a/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-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org