Skip to content

Commit ad16bf4

Browse files
Willian Dihanstermichaelosthege
Willian Dihanster
authored andcommitted
Removed assert_negative_support function call
1 parent 75e6be0 commit ad16bf4

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

pymc/distributions/multivariate.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,7 @@
4343

4444
from pymc.aesaraf import change_rv_size, floatX, intX
4545
from pymc.distributions import transforms
46-
from pymc.distributions.continuous import (
47-
BoundedContinuous,
48-
ChiSquared,
49-
Normal,
50-
assert_negative_support,
51-
)
46+
from pymc.distributions.continuous import BoundedContinuous, ChiSquared, Normal
5247
from pymc.distributions.dist_math import (
5348
betaln,
5449
check_parameters,
@@ -381,7 +376,7 @@ def dist(cls, nu, Sigma=None, mu=None, cov=None, tau=None, chol=None, lower=True
381376
cov = quaddist_matrix(cov, chol, tau, lower)
382377
# Aesara is stricter about the shape of mu, than PyMC used to be
383378
mu = at.broadcast_arrays(mu, cov[..., -1])[0]
384-
assert_negative_support(nu, "nu", "MvStudentT")
379+
385380
return super().dist([nu, mu, cov], **kwargs)
386381

387382
def moment(rv, size, nu, mu, cov):
@@ -2288,9 +2283,6 @@ def dist(cls, alpha, K, *args, **kwargs):
22882283
alpha = at.as_tensor_variable(floatX(alpha))
22892284
K = at.as_tensor_variable(intX(K))
22902285

2291-
assert_negative_support(alpha, "alpha", "StickBreakingWeights")
2292-
assert_negative_support(K, "K", "StickBreakingWeights")
2293-
22942286
return super().dist([alpha, K], **kwargs)
22952287

22962288
def moment(rv, size, alpha, K):

0 commit comments

Comments
 (0)