Skip to content

Commit

Permalink
[SPARK-7723] Fix string interpolation in pipeline examples
Browse files Browse the repository at this point in the history
https://issues.apache.org/jira/browse/SPARK-7723

Author: Saleem Ansari <[email protected]>

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
  • Loading branch information
tuxdna authored and srowen committed May 19, 2015
1 parent 27fa88b commit df34793
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ml-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit df34793

Please sign in to comment.