[ 
https://issues.apache.org/jira/browse/SPARK-24102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16717220#comment-16717220
 ] 

ASF GitHub Bot commented on SPARK-24102:
----------------------------------------

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

 ##########
 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:
   Nit: I don't think the rename was necessary, but it is OK

----------------------------------------------------------------
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:
us...@infra.apache.org


> RegressionEvaluator should use sample weight data
> -------------------------------------------------
>
>                 Key: SPARK-24102
>                 URL: https://issues.apache.org/jira/browse/SPARK-24102
>             Project: Spark
>          Issue Type: Improvement
>          Components: ML
>    Affects Versions: 2.0.2
>            Reporter: Ilya Matiach
>            Priority: Major
>              Labels: starter
>
> The LogisticRegression and LinearRegression models support training with a 
> weight column, but the corresponding evaluators do not support computing 
> metrics using those weights. This breaks model selection using CrossValidator.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to