-
Notifications
You must be signed in to change notification settings - Fork 4
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
Some convenience functions for WeightedMeasures #43
Conversation
Codecov Report
@@ Coverage Diff @@
## master #43 +/- ##
==========================================
+ Coverage 37.98% 38.51% +0.53%
==========================================
Files 31 31
Lines 724 727 +3
==========================================
+ Hits 275 280 +5
+ Misses 449 447 -2
Continue to review full report at Codecov.
|
Thanks @theogf . Can you help me understand downstream applications of these? My main concern is to be sure we can keep the semantics consistent. |
I think |
I'm confused, because I don't think of measures as ever having a Kind of the same issue with logweight(3 * (Normal() + StudentT(5))) == log(6) (the log of the mass of the measure) If it's going to not be composable, maybe we should call it |
It probably should not be called
I see what you mean, and your example is great. I will change accordingly. But that also means that the current |
Haha, yeah I guess so. I don't see anywhere we use that, maybe we just drop it? |
Co-authored-by: Chad Scherrer <[email protected]>
Btw, back to the |
Ah but it actually just return the number of marginals, not in the input dimensionality. |
…e.jl into tgf/weightedmeasure
@cscherrer Anything else you would like to see changed? |
Looking good, thanks @theogf ! |
This include having
length
returning the right thing, defining a fallbacklogweight
for all measures and being able to sample from a weighted measure.