-
- Downloads
[SPARK-9005] [MLLIB] Fix RegressionMetrics computation of explainedVariance
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
Showing
- mllib/src/main/scala/org/apache/spark/mllib/evaluation/RegressionMetrics.scala 17 additions, 10 deletions...org/apache/spark/mllib/evaluation/RegressionMetrics.scala
- mllib/src/test/scala/org/apache/spark/mllib/evaluation/RegressionMetricsSuite.scala 65 additions, 4 deletions...pache/spark/mllib/evaluation/RegressionMetricsSuite.scala
- python/pyspark/mllib/evaluation.py 1 addition, 1 deletionpython/pyspark/mllib/evaluation.py
Please register or sign in to comment