Github user hhbyyh commented on a diff in the pull request: https://github.com/apache/spark/pull/19337#discussion_r142854372 --- Diff: mllib/src/main/scala/org/apache/spark/mllib/clustering/LDAOptimizer.scala --- @@ -322,6 +326,13 @@ final class OnlineLDAOptimizer extends LDAOptimizer { this } + @Since("2.3.0") + def setEpsilon(epsilon: Double): this.type = { + require(epsilon> 0, s"LDA epsilon must be positive, but was set to $epsilon") --- End diff -- space after epsilon.
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org