-
- Downloads
[SPARK-9090] [ML] Fix definition of residual in LinearRegressionSummary,...
[SPARK-9090] [ML] Fix definition of residual in LinearRegressionSummary, EnsembleTestHelper, and SquaredError Make the definition of residuals in Spark consistent with literature. We have been using `prediction - label` for residuals, but literature usually defines `residual = label - prediction`. Author: Feynman Liang <fliang@databricks.com> Closes #7435 from feynmanliang/SPARK-9090-Fix-LinearRegressionSummary-Residuals and squashes the following commits: f4b39d8 [Feynman Liang] Fix doc bc12a92 [Feynman Liang] Tweak EnsembleTestHelper and SquaredError residuals 63f0d60 [Feynman Liang] Fix definition of residual
Showing
- mllib/src/main/scala/org/apache/spark/ml/regression/LinearRegression.scala 2 additions, 2 deletions...ala/org/apache/spark/ml/regression/LinearRegression.scala
- mllib/src/main/scala/org/apache/spark/mllib/tree/loss/SquaredError.scala 2 additions, 2 deletions...scala/org/apache/spark/mllib/tree/loss/SquaredError.scala
- mllib/src/test/scala/org/apache/spark/ml/regression/LinearRegressionSuite.scala 2 additions, 2 deletions...rg/apache/spark/ml/regression/LinearRegressionSuite.scala
- mllib/src/test/scala/org/apache/spark/mllib/tree/EnsembleTestHelper.scala 1 addition, 1 deletion...cala/org/apache/spark/mllib/tree/EnsembleTestHelper.scala
Loading
Please register or sign in to comment