Skip to content
Snippets Groups Projects
  • Feynman Liang's avatar
    536533ca
    [SPARK-9005] [MLLIB] Fix RegressionMetrics computation of explainedVariance · 536533ca
    Feynman Liang authored
    Fixes implementation of `explainedVariance` and `r2` to be consistent with their definitions as described in [SPARK-9005](https://issues.apache.org/jira/browse/SPARK-9005).
    
    Author: Feynman Liang <fliang@databricks.com>
    
    Closes #7361 from feynmanliang/SPARK-9005-RegressionMetrics-bugs and squashes the following commits:
    
    f1112fc [Feynman Liang] Add explainedVariance formula
    1a3d098 [Feynman Liang] SROwen code review comments
    08a0e1b [Feynman Liang] Fix pyspark tests
    db8605a [Feynman Liang] Style fix
    bde9761 [Feynman Liang] Fix RegressionMetrics tests, relax assumption predictor is unbiased
    c235de0 [Feynman Liang] Fix RegressionMetrics tests
    4c4e56f [Feynman Liang] Fix RegressionMetrics computation of explainedVariance and r2
    536533ca
    History
    [SPARK-9005] [MLLIB] Fix RegressionMetrics computation of explainedVariance
    Feynman Liang authored
    Fixes implementation of `explainedVariance` and `r2` to be consistent with their definitions as described in [SPARK-9005](https://issues.apache.org/jira/browse/SPARK-9005).
    
    Author: Feynman Liang <fliang@databricks.com>
    
    Closes #7361 from feynmanliang/SPARK-9005-RegressionMetrics-bugs and squashes the following commits:
    
    f1112fc [Feynman Liang] Add explainedVariance formula
    1a3d098 [Feynman Liang] SROwen code review comments
    08a0e1b [Feynman Liang] Fix pyspark tests
    db8605a [Feynman Liang] Style fix
    bde9761 [Feynman Liang] Fix RegressionMetrics tests, relax assumption predictor is unbiased
    c235de0 [Feynman Liang] Fix RegressionMetrics tests
    4c4e56f [Feynman Liang] Fix RegressionMetrics computation of explainedVariance and r2
evaluation.py 15.24 KiB