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

    https://github.com/apache/spark/pull/3833#discussion_r23821631
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/classification/LogisticRegression.scala
 ---
    @@ -205,9 +262,25 @@ class LogisticRegressionWithLBFGS
     
       override val optimizer = new LBFGS(new LogisticGradient, new 
SquaredL2Updater)
     
    -  override protected val validators = 
List(DataValidators.binaryLabelValidator)
    +  validators = List(DataValidators.binaryLabelValidator)
    +
    +  /**
    +   * :: Experimental ::
    +   * Set the number of possible outcomes for k classes classification 
problem in
    +   * Multinomial Logistic Regression.
    +   * By default, it is binary logistic regression so k will be set to 2.
    +   */
    +  @Experimental
    +  def setNumOfClasses(k: Int): this.type = {
    --- End diff --
    
    `setNumClasses`, `k`->`numClasses`


---
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 [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to