Skip to content

Commit 1269701

Browse files
committed
【Hackathon 6th No.5】Chi2 / LKJCholesky API
1 parent 9caf814 commit 1269701

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/distribution/test_distribution_lkj_cholesky.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def test_cvine_sample_shape(self):
6161
self._test_sample_shape_dim(sample_method)
6262

6363
def _test_sample_shape_dim(self, sample_method):
64-
for dim in range(2, 5):
64+
for dim in range(2, 4):
6565
self._test_sample_shape(dim, sample_method)
6666

6767
def _test_sample_shape(self, dim, sample_method):
@@ -117,7 +117,7 @@ def test_cvine_sample_shape(self):
117117
self._test_sample_shape_dim(sample_method)
118118

119119
def _test_sample_shape_dim(self, sample_method):
120-
for dim in range(2, 5):
120+
for dim in range(2, 4):
121121
self._test_sample_shape(dim, sample_method)
122122

123123
def _test_sample_shape(self, dim, sample_method):
@@ -140,7 +140,7 @@ def _test_sample_shape(self, dim, sample_method):
140140
class TestLKJCholeskyLogProb(unittest.TestCase):
141141
def test_log_prob_onion(self):
142142
sample_method = 'onion'
143-
for dim in range(2, 5):
143+
for dim in range(2, 4):
144144
self.dim = dim
145145
self._paddle_lkj_cholesky = lkj_cholesky.LKJCholesky(
146146
dim, [1.0], sample_method
@@ -149,7 +149,7 @@ def test_log_prob_onion(self):
149149

150150
def test_log_prob_cvine(self):
151151
sample_method = 'cvine'
152-
for dim in range(2, 5):
152+
for dim in range(2, 4):
153153
self.dim = dim
154154
self._paddle_lkj_cholesky = lkj_cholesky.LKJCholesky(
155155
dim, [1.0], sample_method

test/distribution/test_distribution_lkj_cholesky_static.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def test_cvine_sample_shape(self):
7676
self._test_sample_shape_dim(sample_method)
7777

7878
def _test_sample_shape_dim(self, sample_method):
79-
for dim in range(2, 5):
79+
for dim in range(2, 4):
8080
self._test_sample_shape(dim, sample_method)
8181

8282
def _test_sample_shape(self, dim, sample_method):
@@ -152,7 +152,7 @@ def test_cvine_sample_shape(self):
152152
self._test_sample_shape_dim(sample_method)
153153

154154
def _test_sample_shape_dim(self, sample_method):
155-
for dim in range(2, 5):
155+
for dim in range(2, 4):
156156
self._test_sample_shape(dim, sample_method)
157157

158158
def _test_sample_shape(self, dim, sample_method):

0 commit comments

Comments
 (0)