scale alpha by 1/scale so that var scales by scale factor

This commit is contained in:
Dr. Kashif Rasul
2020-03-27 11:34:12 +01:00
parent c52dfe9853
commit 47063478b7
+1 -1
View File
@@ -139,7 +139,7 @@ class NegativeBinomialOutput(DistributionOutput):
if scale is not None:
mu *= scale
alpha /= torch.sqrt(scale)
alpha /= scale
n = 1.0 / alpha
p = mu * alpha / (1.0 + mu * alpha)