Skip to content
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 effective sample size analytics to WeighedPredictive results #3351

Merged
merged 2 commits into from
Mar 28, 2024

Conversation

BenZickel
Copy link
Contributor

  1. Allows calculation of the effective sample size of weighed sample results (returned by pyro.infer.predictive.WeighedPredictive) by calling the .get_ESS method.
  2. Code is shared with pyro.infer.importance.Importance.

Copy link
Member

@fritzo fritzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just a couple nits.

pyro/infer/importance.py Outdated Show resolved Hide resolved
pyro/infer/predictive.py Outdated Show resolved Hide resolved
@fritzo
Copy link
Member

fritzo commented Mar 28, 2024

And thanks for sharing code across modules, it helps us with maintenance!

Copy link
Member

@fritzo fritzo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing my nits!

@fritzo fritzo merged commit 58080f8 into pyro-ppl:dev Mar 28, 2024
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants