-
|
I'm trying to use the SNLE implementation to generate a joint likelihood function (analytically intractable) for two correlated observations from two different experiments that I can then sample over with Nested Sampling to get a joint evidence. My call to the sbi package looks something like
and I am aware that this is a non-normalised posterior but my prior is uniform so I can just do My question is whether the data and parameters are normalised by default with the SNLE method? and can I turn this off? This is not immediately clear in the documentation and has an impact on the recovered I think if the data and parameters are normalised i.e. This should be fixable via some jacobian transformation Thanks for the help! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
In this case (and in most other cases :) ) we would recommend using the flexible interface, here' s a tutorial: https://github.com/sbi-dev/sbi/blob/main/tutorials/02_flexible_interface.ipynb. And then you can specify your custom density estimator as described here https://github.com/sbi-dev/sbi/blob/main/tutorials/04_density_estimators.ipynb to turn off normalization, e.g., in |
Beta Was this translation helpful? Give feedback.
-
|
Ahh I see okay thanks for the help! I will have a play with the flexible interface and see if I can grab the jacobian I need. |
Beta Was this translation helpful? Give feedback.
In this case (and in most other cases :) ) we would recommend using the flexible interface, here' s a tutorial: https://github.com/sbi-dev/sbi/blob/main/tutorials/02_flexible_interface.ipynb.
And then you can specify your custom density estimator as described here
https://github.com/sbi-dev/sbi/blob/main/tutorials/04_density_estimators.ipynb
to turn off normalization, e.g., in
likelihood_nnsetz_score_x="none".