Revert "scale alpha so that the var stays the same"

This reverts commit 3c6bbf28d7.
This commit is contained in:
Dr. Kashif Rasul
2020-04-06 12:09:38 +02:00
parent 3c6bbf28d7
commit f615be41f0
+2 -2
View File
@@ -136,8 +136,8 @@ class NegativeBinomialOutput(DistributionOutput):
mu, alpha = distr_args
if scale is not None:
alpha = (1 - scale + mu*alpha)/(mu*scale*scale)
mu = mu*scale
mu *= scale
alpha /= scale
n = 1.0 / alpha
p = mu * alpha / (1.0 + mu * alpha)