Skip to content

Commit a81959a

Browse files
committed
readd mu 2-dim test cases
1 parent 9edbdb1 commit a81959a

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

pymc/tests/test_distributions_moments.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -759,6 +759,9 @@ def test_categorical_moment(p, size, expected):
759759
(np.ones(10), np.identity(10), None, np.ones(10)),
760760
(np.ones(2), np.identity(2), 4, np.ones((4, 2))),
761761
(np.ones(2), np.identity(2), (4, 3), np.ones((4, 3, 2))),
762+
(np.ones((2, 2)), np.identity(2), None, np.ones((2, 2))),
763+
(np.ones((2, 2)), np.identity(2), 4, np.ones((4, 2, 2))),
764+
(np.ones((2, 2)), np.identity(2), (4, 2), np.ones((4, 2, 2, 2))),
762765
(np.array([1, 0, 3.0]), np.identity(3), None, np.array([1, 0, 3.0])),
763766
(np.array([1, 0, 3.0]), np.identity(3), 4, np.full((4, 3), [1, 0, 3.0])),
764767
(np.array([1, 0, 3.0]), np.identity(3), (4, 2), np.full((4, 2, 3), [1, 0, 3.0])),
@@ -780,6 +783,12 @@ def test_categorical_moment(p, size, expected):
780783
(4, 5),
781784
np.full((4, 5, 3), [1, 3, 0.0]),
782785
),
786+
(
787+
np.array([[3., 5], [1, 4]]),
788+
np.identity(2),
789+
(4, 5),
790+
np.full((4, 5, 2, 2), [[3., 5], [1, 4]])
791+
),
783792
],
784793
)
785794
def test_mv_normal_moment(mu, cov, size, expected):

0 commit comments

Comments
 (0)