fix scaling of alpha

This commit is contained in:
Dr. Kashif Rasul
2020-03-21 17:47:35 +01:00
parent 502f6d6c26
commit 6bc281e526
+1 -1
View File
@@ -124,7 +124,7 @@ class NegativeBinomialOutput(DistributionOutput):
if scale is not None:
mu *= scale
alpha *= torch.sqrt(scale + 1.0)
alpha /= torch.sqrt(scale)
n = 1.0 / alpha
p = mu * alpha / (1.0 + mu * alpha)