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

    https://github.com/apache/spark/pull/3833#discussion_r23821623
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/mllib/classification/LogisticRegression.scala
 ---
    @@ -37,11 +40,26 @@ class LogisticRegressionModel (
     
       private var threshold: Option[Double] = Some(0.5)
     
    +  private var nClasses = 2
    +
       /**
        * :: Experimental ::
    -   * Sets the threshold that separates positive predictions from negative 
predictions. An example
    -   * with prediction score greater than or equal to this threshold is 
identified as an positive,
    -   * and negative otherwise. The default value is 0.5.
    +   * 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 --
    
    Remove this setter.


---
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