Github user chetkhatri commented on a diff in the pull request:
https://github.com/apache/spark/pull/20070#discussion_r158978102
--- Diff:
examples/src/main/scala/org/apache/spark/examples/mllib/AssociationRulesExample.scala
---
@@ -42,14 +42,13 @@ object AssociationRulesExample {
val results = ar.run(freqItemsets)
results.collect().foreach { rule =>
- println("[" + rule.antecedent.mkString(",")
- + "=>"
- + rule.consequent.mkString(",") + "]," + rule.confidence)
+
println(s"[${rule.antecedent.mkString(",")}=>${rule.consequent.mkString(",")}
]" +
+ s" ${rule.confidence}")
}
// $example off$
sc.stop()
}
}
-// scalastyle:on println
+// scalastyle:on println
--- End diff --
Done, addressed.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]