imatiach-msft commented on a change in pull request #17085: 
[SPARK-24102][ML][MLLIB] ML Evaluators should use weight column - added weight 
column for regression evaluator
URL: https://github.com/apache/spark/pull/17085#discussion_r240690346
 
 

 ##########
 File path: 
mllib/src/main/scala/org/apache/spark/mllib/stat/MultivariateOnlineSummarizer.scala
 ##########
 @@ -52,7 +52,7 @@ class MultivariateOnlineSummarizer extends 
MultivariateStatisticalSummary with S
   private var totalCnt: Long = 0
   private var totalWeightSum: Double = 0.0
   private var weightSquareSum: Double = 0.0
-  private var weightSum: Array[Double] = _
+  private var currWeightSum: Array[Double] = _
 
 Review comment:
   Nevermind, it looks like the build failed because the private variable 
conflicts with the public variable that was defined:
   
     /**
      * Sum of weights.
      */
     override def weightSum: Double = totalWeightSum
   
   I think this may be the best name for the public variable so I would prefer 
to keep it.  The private variable now follows the naming convention of the 
other private array variables so I think this makes sense.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

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

Reply via email to