-
- Downloads
[SPARK-18166][MLLIB] Fix Poisson GLM bug due to wrong requirement of response values
## What changes were proposed in this pull request? The current implementation of Poisson GLM seems to allow only positive values. This is incorrect since the support of Poisson includes the origin. The bug is easily fixed by changing the test of the Poisson variable from 'require(y **>** 0.0' to 'require(y **>=** 0.0'. mengxr srowen Author: actuaryzhang <actuaryzhang10@gmail.com> Author: actuaryzhang <actuaryzhang@uber.com> Closes #15683 from actuaryzhang/master. (cherry picked from commit ae6cddb7) Signed-off-by:Sean Owen <sowen@cloudera.com>
Showing
- mllib/src/main/scala/org/apache/spark/ml/regression/GeneralizedLinearRegression.scala 2 additions, 2 deletions...che/spark/ml/regression/GeneralizedLinearRegression.scala
- mllib/src/test/scala/org/apache/spark/ml/regression/GeneralizedLinearRegressionSuite.scala 45 additions, 0 deletions...park/ml/regression/GeneralizedLinearRegressionSuite.scala
Please register or sign in to comment