Github user chetkhatri commented on a diff in the pull request:
https://github.com/apache/spark/pull/20070#discussion_r158975980
--- Diff:
examples/src/main/scala/org/apache/spark/examples/ml/ChiSquareTestExample.scala
---
@@ -52,9 +52,9 @@ object ChiSquareTestExample {
val df = data.toDF("label", "features")
val chi = ChiSquareTest.test(df, "features", "label").head
- println("pValues = " + chi.getAs[Vector](0))
- println("degreesOfFreedom = " + chi.getSeq[Int](1).mkString("[", ",",
"]"))
- println("statistics = " + chi.getAs[Vector](2))
+ println(s"pValues = ${chi.getAs[Vector](0)}")
--- End diff --
Ok
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]