Repository navigation
Zuko density estimators - #1068
anastasiakrouglova wants to merge 19 commits into
Conversation
* CLN pyproject.toml * CLN optional deps comment * CLN alphabetical order
* fix x_o and broken link tutorial 7 * typo in title * suppress plotting output --------- Co-authored-by: Matthijs <[email protected]>
gmoss13
left a comment
There was a problem hiding this comment.
Great work, thanks a lot @bkmi and @anastasiakrouglova! I left comments throughout, happy to discuss more.
I also see that we pyright tests are still failing - do you have the pre-commit hooks installed? if this issue is resolved and tests pass I think this PR is already quite close!
There was a problem hiding this comment.
what is the difference between the new class ZukoFlowGMM here and the existing ZukoFlow class? To me it looks the same, but let me know if I am missing the point. I think it makes sense to have a ZukoGMM class that can be compatible with methods that specifically require MDNs, such as SNPE-A and SNPE-C with non-atomic loss, but I think this would require more work. See #1042 (@jnsbck is working on this I believe).
|
Regarding pyright: four of the errors it shows are stuff which should be fixed. I'm not sure what the best way of handling @gmoss13 Pyright is not part of the precommit hooks. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1068 +/- ##
==========================================
+ Coverage 76.37% 76.86% +0.49%
==========================================
Files 84 89 +5
Lines 6507 6632 +125
==========================================
+ Hits 4970 5098 +128
+ Misses 1537 1534 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
What does this implement/fix? Explain your changes
We implemented the Zuko density estimators (i.e., NICE, (MAF), NSF, NCSF, SOSPF, NAF, UNAF, CNF, GF, BPF) described in https://github.com/probabilists/zuko/tree/master. The only flow that is not implemented yet, is the Gaussian Mixture Model (GMM).
Does this close any currently open issues?
Fixes #974
However, the implementation of Zuko GMM is still required.
Any relevant code examples, logs, error output, etc?
Any other comments?
For Zuko GMM, please adjust this file:
zuko_flow_GMM.pyand add abuild_zuko_gmmfunction toflow.py.Checklist
Put an
xin 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)