Skip to content

Commit abe1289

Browse files
fixup
1 parent c7be0ff commit abe1289

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/linearGaussian_snpe_test.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ def simulator(theta):
271271
"tsnpe_sir",
272272
),
273273
)
274-
def test_c2st_multi_round_npe_on_linearGaussian(method_str: str):
274+
def test_c2st_multi_round_snpe_on_linearGaussian(method_str: str):
275275
"""Test whether NPE B/C infer well a simple example with available ground truth.
276276
.
277277
"""
@@ -293,14 +293,14 @@ def test_c2st_multi_round_npe_on_linearGaussian(method_str: str):
293293
)
294294
target_samples = gt_posterior.sample((num_samples,))
295295

296-
if method_str == "npe_c_non_atomic":
296+
if method_str == "snpe_c_non_atomic":
297297
# Test whether NPE works properly with structured z-scoring.
298298
density_estimator = posterior_nn(
299299
"mdn", z_score_x="structured", num_components=5
300300
)
301301
method_str = "snpe_c"
302302
elif method_str == "snpe_a":
303-
density_estimator = "mdn_npe_a"
303+
density_estimator = "mdn_snpe_a"
304304
else:
305305
density_estimator = "maf"
306306

0 commit comments

Comments
 (0)