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

    https://github.com/apache/spark/pull/19106#discussion_r138130375
  
    --- Diff: 
mllib/src/main/scala/org/apache/spark/ml/classification/ProbabilisticClassifier.scala
 ---
    @@ -245,6 +245,10 @@ private[ml] object ProbabilisticClassificationModel {
             v.values(i) /= sum
             i += 1
           }
    +    } else {
    +      var i = 0
    +      val size = v.size
    --- End diff --
    
    What's the need for these two vars?


---

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

Reply via email to