Skip to content

Commit 2552f47

Browse files
committed
fix mnle tests
1 parent 6e9a309 commit 2552f47

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/mnle_test.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -148,16 +148,13 @@ def test_mnle_accuracy_with_different_samplers_and_trials(
148148
):
149149
"""Test MNLE c2st accuracy for different samplers and number of trials."""
150150

151-
num_simulations = 3200
152-
num_samples = 500
151+
num_simulations = 4000
152+
num_samples = 1000
153153

154154
prior = MultipleIndependent(
155155
[
156156
Gamma(torch.tensor([1.0]), torch.tensor([0.5])),
157157
Beta(torch.tensor([2.0]), torch.tensor([2.0])),
158-
Beta(
159-
torch.tensor([2.0]), torch.tensor([2.0])
160-
), # tests discrete dims > 1 works
161158
],
162159
validate_args=False,
163160
)
@@ -200,7 +197,7 @@ def test_mnle_accuracy_with_different_samplers_and_trials(
200197
check_c2st(
201198
mnle_posterior_samples,
202199
true_posterior_samples,
203-
alg=f"MNLE with {sampler}",
200+
alg=f"MNLE with {flow_model} and {sampler}",
204201
)
205202

206203

0 commit comments

Comments
 (0)