Skip to content

Commit 42ffa0d

Browse files
committed
changed default values for TruncatedNormal lower and upper to -np.inf and np.inf
1 parent 31370f3 commit 42ffa0d

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
@@ -575,8 +575,8 @@ def __init__(self, mu=0, sd=None, tau=None, lower=None, upper=None,
575575
tau, sd = get_tau_sd(tau=tau, sd=sd)
576576
self.sd = tt.as_tensor_variable(sd)
577577
self.tau = tt.as_tensor_variable(tau)
578-
self.lower = tt.as_tensor_variable(lower) if lower is not None else lower
579-
self.upper = tt.as_tensor_variable(upper) if upper is not None else upper
578+
self.lower = tt.as_tensor_variable(lower) if lower is not None else -np.inf
579+
self.upper = tt.as_tensor_variable(upper) if upper is not None else np.inf
580580
self.mu = tt.as_tensor_variable(mu)
581581

582582
if self.lower is None and self.upper is None:

0 commit comments

Comments
 (0)