You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Joseph K. Bradley (JIRA)" <ji...@apache.org> on 2015/07/15 20:27:04 UTC

[jira] [Updated] (SPARK-9005) RegressionMetrics computing incorrect explainedVariance

     [ https://issues.apache.org/jira/browse/SPARK-9005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Joseph K. Bradley updated SPARK-9005:
-------------------------------------
    Summary: RegressionMetrics computing incorrect explainedVariance  (was: RegressionMetrics computing incorrect explainedVariance and r2)

> RegressionMetrics computing incorrect explainedVariance
> -------------------------------------------------------
>
>                 Key: SPARK-9005
>                 URL: https://issues.apache.org/jira/browse/SPARK-9005
>             Project: Spark
>          Issue Type: Bug
>          Components: MLlib
>            Reporter: Feynman Liang
>            Assignee: Feynman Liang
>
> {{RegressionMetrics}} currently computes explainedVariance using {{summary.variance(1)}} (variance of the residuals) where the [Wikipedia definition|https://en.wikipedia.org/wiki/Fraction_of_variance_unexplained] uses the residual sum of squares {{math.pow(summary.normL2(1), 2)}}. The two coincide only when the predictor is unbiased (e.g. an intercept term is included in a linear model), but this is not always the case. We should change to be consistent.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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