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

    https://github.com/apache/flink/pull/874#discussion_r33764869
  
    --- Diff: 
flink-staging/flink-ml/src/main/scala/org/apache/flink/ml/classification/SVM.scala
 ---
    @@ -187,6 +200,34 @@ class SVM extends Predictor[SVM] {
         parameters.add(Seed, seed)
         this
       }
    +
    +  /** Sets the threshold above which elements are classified as positive.
    +    *
    +    * The [[predict ]]and [[evaluate]]functions will return +1.0 for items 
with a decision function
    +    * value above this threshold, and -1.0 for items below it.
    +    * @param threshold
    +    * @return
    +    */
    +  def setThreshold(threshold: Double): SVM = {
    +    parameters.add(ThresholdValue, threshold)
    +    this
    +  }
    +
    +  /** Sets whether the predictions should return the raw decision function 
value or the
    +    * thresholded binary value.
    +    *
    +    * When setting this to true, predict and evaluate return the raw 
decision value, which is
    +    * the distance from the separating hyperplane.
    +    * When setting this to false, they return thresholded (+1.0, -1.0) 
values.
    +    *
    +    * @param outputDecisionFunction When set to true, [[predict ]]and 
[[evaluate]] return the raw
    --- End diff --
    
    whitespace between [[predict]] and "and"


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

Reply via email to