Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.0.0
-
None
Description
The current implementation of Poisson GLM seems to allow only positive values (See below). This is not correct since the support of Poisson includes the origin.
override def initialize(y: Double, weight: Double): Double = {
require(y > 0.0, "The response variable of Poisson family " +
s"should be positive, but got $y")
y
}
The fix is easy, just change it to
require(y >= 0.0, "The response variable of Poisson family " +