Github user imatiach-msft commented on a diff in the pull request: https://github.com/apache/spark/pull/22087#discussion_r220779540 --- Diff: mllib/src/test/scala/org/apache/spark/ml/clustering/GaussianMixtureSuite.scala --- @@ -268,6 +268,13 @@ class GaussianMixtureSuite extends MLTest with DefaultReadWriteTest { assert(trueLikelihood ~== doubleLikelihood absTol 1e-6) assert(trueLikelihood ~== floatLikelihood absTol 1e-6) } + + test("prediction on single instance") { + val gmm = new GaussianMixture() --- End diff -- maybe explicitly set seed in order to minimize randomness from run to run (usually better to make tests as deterministic as possible)
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org