mirror of
https://github.com/wassname/pytorch-ts.git
synced 2026-08-11 11:24:31 +08:00
fix scaling of alpha
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user