-
Notifications
You must be signed in to change notification settings - Fork 20
feat: Add reweighting to Discovery #90
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
base: main
Are you sure you want to change the base?
Conversation
|
This PR isn't ready yet. Everything seems to be working, but I'm getting a difference of ~200 in the loglikelihood between NUTS samples and samples evaluated in batch with the same likelihood. I generally expect this to give a difference centered around, or at least consistent with 0.... |
|
This is working now. I was missing the Jacobian determinant term and also the Jacobian was missing a factor of 2. Both of these things have been fixed and the functions have been updated to be more descriptive. |
|
There is still some bug in this right now. I'll work on it soon. |
This PR adds reweighting with support for batching over likelihood evaluations. It also adds
loglto the output of numpyro models for use in this procedure.The functions take in a Pandas DataFrame for a chain of model 1 and a
XLikelihood.logLfor model 2. The model 2 likelihood evaluates the likelihood on samples from model 1 and then weights, Bayes factors, and uncertainties can be computed from this.