Skip to content

Commit 8a8503a

Browse files
AlexAndorrabrandonwillard
authored andcommitted
Remove experimental Ordered Multinomial
1 parent cd3ea86 commit 8a8503a

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

pymc3/distributions/multivariate.py

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -648,29 +648,6 @@ def _distr_parameters_for_repr(self):
648648
return ["n", "a"]
649649

650650

651-
class OrderedMultinomial(Multinomial):
652-
rv_op = multinomial
653-
654-
@classmethod
655-
def dist(cls, eta, cutpoints, n, *args, **kwargs):
656-
eta = at.as_tensor_variable(floatX(eta))
657-
cutpoints = at.as_tensor_variable(cutpoints)
658-
n = at.as_tensor_variable(n)
659-
660-
pa = sigmoid(cutpoints - at.shape_padright(eta))
661-
p_cum = at.concatenate(
662-
[
663-
at.zeros_like(at.shape_padright(pa[..., 0])),
664-
pa,
665-
at.ones_like(at.shape_padright(pa[..., 0])),
666-
],
667-
axis=-1,
668-
)
669-
p = p_cum[..., 1:] - p_cum[..., :-1]
670-
671-
return super().dist([n, p], *args, **kwargs)
672-
673-
674651
def posdef(AA):
675652
try:
676653
linalg.cholesky(AA)

0 commit comments

Comments
 (0)