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

    https://github.com/apache/spark/pull/12400#discussion_r59990906
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/classification/LogisticRegression.scala
 ---
    @@ -104,8 +107,8 @@ private[classification] trait LogisticRegressionParams 
extends ProbabilisticClas
        * @group setParam
        */
       def setThresholds(value: Array[Double]): this.type = {
    -    if (isSet(threshold)) clear(threshold)
    -    set(thresholds, value)
    +    logWarning("Ignoring setThresholds(), use setThreshold() for binary 
Logistic Regression.")
    --- End diff --
    
    I updated the top line of the note to reiterate that this functionality 
will be re-enabled, and maintained the second line as thresholds can still be 
set via a param map with {model name}.thresholds -> {Array(values)}. Do you 
think it makes more sense to remove the top line instead?


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