Skip to content
Discussion options

You must be logged in to vote

Hi there,

for single-round SNPE (ie if you do not run a for-loop as shown here), the prior is almost not used. It is only used to reject posterior samples that are outside of the support of the prior. In your case, the prior is Normal, so it has support on the entire real line, and the prior is completely unused. In your other example, you use a Uniform prior, so it does reject some posterior samples (those outside of [0, 180]).

Aside: You do not have to pass the prior at all (if you do not want to the feature of automatically rejecting posterior samples):

inference = SNPE(density_estimator=density_estimator_build_fn)
...

Hope this helps!
Michael

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@ericlizalde
Comment options

@michaeldeistler
Comment options

Answer selected by ericlizalde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants