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

    https://github.com/apache/spark/pull/13076#discussion_r63141737
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/classification/MultilayerPerceptronClassifier.scala
 ---
    @@ -65,22 +63,23 @@ private[ml] trait MultilayerPerceptronParams extends 
PredictorParams
           "it is adjusted to the size of this data. Recommended size is 
between 10 and 1000",
         ParamValidators.gt(0))
     
    -  /** @group getParam */
    +  /** @group expertGetParam */
       final def getBlockSize: Int = $(blockSize)
     
       /**
    -   * Allows setting the solver: minibatch gradient descent (gd) or l-bfgs.
    -   * l-bfgs is the default one.
    +   * The solver algorithm for optimization.
    +   * Supported options: "gd" (minibatch gradient descent) or "l-bfgs".
    +   * Default: "l-bfgs"
        *
        * @group expertParam
        */
       final val solver: Param[String] = new Param[String](this, "solver",
    -    " Allows setting the solver: minibatch gradient descent (gd) or 
l-bfgs. " +
    -      " l-bfgs is the default one.",
    -    ParamValidators.inArray[String](Array("gd", "l-bfgs")))
    +    "The solver algorithm for optimization. Supported options: " +
    +      s"${MultilayerPerceptronClassifier.supportedSolvers.mkString(", ")}. 
(Default l-bfgs)",
    +    
ParamValidators.inArray[String](MultilayerPerceptronClassifier.supportedSolvers))
     
    -  /** @group getParam */
    -  final def getOptimizer: String = $(solver)
    +  /** @group expertGetParam */
    +  final def getSolver: String = $(solver)
    --- End diff --
    
    This will be a binary incompatible change. It's @Experimental so I guess it 
is ok for Spark 2.0 (cc @jkbradley)


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

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

Reply via email to