-
Notifications
You must be signed in to change notification settings - Fork 155
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
Zuko density estimators (#1088) #1116
Conversation
* update zuko to 1.1.0 * test zuko_gmm commit * build_zuko_nsf added * add build_zuko_naf, update test * add license change to pr template. * CLN pyproject.toml (#1009) * CLN pyproject.toml * CLN optional deps comment * CLN alphabetical order * fix x_o and broken link tutorial 7 (#1003) * fix x_o and broken link tutorial 7 * typo in title * suppress plotting output --------- Co-authored-by: Matthijs <matthijs@example.com> * replace prepare_for_sbi in tutorials (#1013) * add zuko density estimators * not working gmm * update tests for PR * update PR for pyright * resolve pyright * add reportArgumentType * resolve pyright issue * resolve all issues pyright * resolve pyright * add typing and docstring * add functions from factory to test * remove comment mdn file * add docstrings flow file * add docstring in density_estimator_test.py * Update sbi/neural_nets/flow.py Co-authored-by: Sebastian Bischoff <sebastian@salzreute.de> * Update sbi/neural_nets/flow.py Co-authored-by: Sebastian Bischoff <sebastian@salzreute.de> * Update sbi/neural_nets/flow.py Co-authored-by: Sebastian Bischoff <sebastian@salzreute.de> * removed pyright --------- Co-authored-by: bkmi <12955549+bkmi@users.noreply.github.com> Co-authored-by: Nastya Krouglova <nastyakrouglova@Nastyas-MacBook-Pro.local> Co-authored-by: Jan Boelts <jan.boelts@mailbox.org> Co-authored-by: Thomas Moreau <thomas.moreau.2010@gmail.com> Co-authored-by: Matthijs Pals <34062419+Matthijspals@users.noreply.github.com> Co-authored-by: Matthijs <matthijs@example.com> Co-authored-by: zinaStef <49067201+zinaStef@users.noreply.github.com> Co-authored-by: Sebastian Bischoff <sebastian@salzreute.de>
@anastasiakrouglova Could you resolve the merge conflicts with main? This should also trigger the tests to run. |
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.
thanks a lot for adding all the flows! 🔥
I added a couple of suggestions, please have a look. Happy to discuss them if needed.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1116 +/- ##
==========================================
- Coverage 85.45% 77.20% -8.25%
==========================================
Files 90 89 -1
Lines 6612 6610 -2
==========================================
- Hits 5650 5103 -547
- Misses 962 1507 +545
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Thank you for the feedback. I finally removed the CNF zuko flow, but all the rest is implemented. |
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, thanks!
I added three last comments.
Co-authored-by: Jan <janfb@users.noreply.github.com>
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.
One last issue about the changes in the embedding net tutorial notebook.
Indeed, it's quite confusing. These changes to the I can try to fix it by explicitly removing those notebook changes from this PR and move them to a separate branch as a backup. |
Okay that would be awesome, thank you! I'm not sure where the issues come from. At first, I was accidentally merging with the main of the forked bkmi/sbi repository. So maybe it came from this place? |
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.
Alright, now we are good!
(The notebook changes were duplicates or an older version of that notebook that was merged in on the way, so it was fine to discard them.)
Thanks so much again for adding all the zuko flows - great work! 👏
Great!! Thank you so much for reviewing it thoroughly! |
What does this implement/fix? Explain your changes
Provides Zuko density estimators and resolves comments from previous PR.
Does this close any currently open issues?
Fixes # (issue)
Any relevant code examples, logs, error output, etc?
Up to date with latest comments
Any other comments?
Checklist
Put an
x
in the boxes that apply. You can also fill these out after creatingthe PR. If you're unsure about any of them, don't hesitate to ask. We're here to
help! This is simply a reminder of what we are going to look for before merging
your code.
guidelines
with
pytest.mark.slow
.guidelines
main
(or there are no conflicts withmain
)