Skip to content

Commit e8c26d4

Browse files
farhanreynaldoricardoV94
authored andcommitted
remove tau variable from logp
1 parent a8df431 commit e8c26d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pymc3/distributions/continuous.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3193,7 +3193,7 @@ def dist(cls, alpha=1, mu=0.0, sigma=None, tau=None, sd=None, *args, **kwargs):
31933193

31943194
return super().dist([mu, sigma, alpha], *args, **kwargs)
31953195

3196-
def logp(value, alpha, mu, sigma, tau):
3196+
def logp(value, alpha, mu, sigma):
31973197
"""
31983198
Calculate log-probability of SkewNormal distribution at specified value.
31993199
@@ -3207,7 +3207,7 @@ def logp(value, alpha, mu, sigma, tau):
32073207
-------
32083208
TensorVariable
32093209
"""
3210-
tau, sigma = get_tau_sigma(tau=tau, sigma=sigma)
3210+
tau, sigma = get_tau_sigma(sigma=sigma)
32113211
return bound(
32123212
at.log(1 + at.erf(((value - mu) * at.sqrt(tau) * alpha) / at.sqrt(2)))
32133213
+ (-tau * (value - mu) ** 2 + at.log(tau / np.pi / 2.0)) / 2.0,

0 commit comments

Comments
 (0)