Skip to content

Commit

Permalink
Fix string interpolation in pipeline examples
Browse files Browse the repository at this point in the history
  • Loading branch information
tuxdna committed May 3, 2015
1 parent 49549d5 commit e39db9c
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 @@ -228,7 +228,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 @@ -382,7 +382,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 e39db9c

Please sign in to comment.