You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by hhbyyh <gi...@git.apache.org> on 2017/10/05 06:23:08 UTC

[GitHub] spark pull request #19337: [SPARK-22114][ML][MLLIB]add epsilon for LDA

Github user hhbyyh commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19337#discussion_r142853643
  
    --- Diff: mllib/src/main/scala/org/apache/spark/ml/clustering/LDA.scala ---
    @@ -224,6 +224,20 @@ private[clustering] trait LDAParams extends Params with HasFeaturesCol with HasM
       /**
        * For Online optimizer only: [[optimizer]] = "online".
        *
    +   * @group expertParam
    +   */
    +  @Since("2.3.0")
    +  final val epsilon = new DoubleParam(this, "epsilon", "(For online optimizer)" +
    +    " A (positive) learning parameter that controls the convergence of variational inference.",
    --- End diff --
    
    The parameter introduction here cannot really help a user without knowledge of LDA implementation. Please add more description for the effect if user want to tune the parameter, such like "Smaller value will lead to higher accuracy with the cost of more iterations."


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org