mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-09-10 12:37:53 +08:00
scale alpha by 1/scale so that var scales by scale factor
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user