Skip to content

Commit 72b3a7d

Browse files
committed
fix #1224: upgrade pyknos, remove xfail test.
1 parent ac29077 commit 72b3a7d

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ dependencies = [
3535
"matplotlib",
3636
"numpy",
3737
"pillow",
38-
"pyknos>=0.15.1",
38+
"pyknos>=0.16.0",
3939
"pyro-ppl>=1.3.1",
4040
"scikit-learn",
4141
"scipy",

tests/posterior_nn_test.py

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -213,19 +213,7 @@ def test_batched_mcmc_sample_log_prob_with_different_x(
213213

214214

215215
@pytest.mark.slow
216-
@pytest.mark.parametrize(
217-
"density_estimator",
218-
[
219-
pytest.param(
220-
"mdn",
221-
marks=pytest.mark.xfail(
222-
raises=AssertionError, reason="Due to MDN bug in pyknos", strict=True
223-
),
224-
),
225-
"maf",
226-
"zuko_nsf",
227-
],
228-
)
216+
@pytest.mark.parametrize("density_estimator", ["mdn", "maf", "zuko_nsf"])
229217
def test_batched_sampling_and_logprob_accuracy(density_estimator: str):
230218
"""Test with two different observations and compare to sequential methods."""
231219
num_dim = 2

0 commit comments

Comments
 (0)