You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by chetkhatri <gi...@git.apache.org> on 2018/01/01 10:04:39 UTC
[GitHub] spark pull request #20070: SPARK-22896 Improvement in String interpolation
Github user chetkhatri commented on a diff in the pull request:
https://github.com/apache/spark/pull/20070#discussion_r159152519
--- Diff: examples/src/main/scala/org/apache/spark/examples/mllib/LatentDirichletAllocationExample.scala ---
@@ -46,7 +46,10 @@ object LatentDirichletAllocationExample {
val topics = ldaModel.topicsMatrix
for (topic <- Range(0, 3)) {
print(s"Topic $topic :")
- for (word <- Range(0, ldaModel.vocabSize)) { print(s" ${topics(word, topic)}") }
+ for (word <- Range(0, ldaModel.vocabSize))
+ {
--- End diff --
@srowen sure done.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org