-
Notifications
You must be signed in to change notification settings - Fork 152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add test, adapt error message. #734
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! A couple of questions below. I'm happy to make the required changes and merge.
tests/linearGaussian_snpe_test.py
Outdated
|
||
proposal = estimator.build_posterior().set_default_x(x_o) | ||
samples.append(proposal.sample((num_simulations,))) | ||
fig, ax = pairplot( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we pairplot and save?
tests/linearGaussian_snpe_test.py
Outdated
"num_simulations", | ||
(5000, 10000, 15000), | ||
) | ||
@pytest.mark.parametrize("density_estimator", ("mdn", "nsf", "maf")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why test nsf and maf in this test?
log_prob_proposal_posterior, | ||
"""the evaluation of the MoG proposal posterior. This is likely due to too | ||
little training data---consider increasing your simulation budget.""", | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not 100% sure about this -- are you still observing the failure with low simulation-budgets after the fix?
tests/linearGaussian_snpe_test.py
Outdated
@@ -627,3 +627,68 @@ def test_example_posterior(snpe_method: type): | |||
prior=prior, posterior_estimator=posterior_estimator | |||
).set_default_x(x_o) | |||
assert posterior is not None | |||
|
|||
|
|||
@pytest.mark.parametrize("num_dim", (10, 12, 14)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should mark this as slow, no?
fa3571e
to
c0736d5
Compare
fixes #733
@michaeldeistler feel free to adapt and merge.