-
Notifications
You must be signed in to change notification settings - Fork 160
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
Integrate new density estimator interface into SBI #979
Conversation
6eb43d7
to
fdd6c05
Compare
Great work @gmoss13 ! I will join this branch and try to update the NPE classes. Edit: Are the changes up to date, then I would commit my change for NPE? |
Added some basic functionality for incorporating Zuko flows with embedding nets, works with SNLE. A couple of questions:
|
Regarding 2), I would prefer |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #979 +/- ##
==========================================
+ Coverage 76.30% 76.37% +0.07%
==========================================
Files 83 84 +1
Lines 6398 6507 +109
==========================================
+ Hits 4882 4970 +88
- Misses 1516 1537 +21
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
In the integration process, I also noticed that we have to expose some more properties (currently, I temporarily fixed it only for NFlows, to first get all tests to run through). But we indeed should in no line have to call
|
Can we get around having a
Since this is MDN-specific, I wonder if we can leave it as it is? |
Agree, but e.g. MDNs will always be wrapped as a flow that either has an
Probably. |
Also added now RatioEstimator wrapper - currently not used. I've assumed that there can only be one |
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.
Great effort! 👏
I added lots of questions and comments. happy to discuss online tomorrow.
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.
Looks great!
Added a couple of minor comments, and one important one about the loss vs log_prob.
I will run all slow tests locally over launch to check if they also pass. |
Okay, all 204 slow tests did pass. |
Requires a rebase on Given the long commit history with merge commits etc, I suggest to squash the commits into one big commit. Alternatively, you could try to reorganize and summarize the changes into a smaller number of commits during rebasing. |
I would go for the one big commit. Let's wait to see if @michaeldeistler has any comments before merging. |
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.
This is really amazing work @manuelgloeckler and @gmoss13, thanks so much! I have made a few comments below, but most of them are to create follow-up issues and add a few comments. Once addressed this is good to go!
Addresses #957. Should implement fully for all methods before merging.
NOTE:
x_o
.MultipleIndependent
prior support check ondim=1 -> dim=-1