-
-
Notifications
You must be signed in to change notification settings - Fork 30
conditional models #216
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
Closed
Closed
conditional models #216
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Codecov Report
@@ Coverage Diff @@
## master #216 +/- ##
==========================================
+ Coverage 28.53% 30.99% +2.45%
==========================================
Files 43 45 +2
Lines 1265 1381 +116
==========================================
+ Hits 361 428 +67
- Misses 904 953 +49
Continue to review full report at Codecov.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
WIP-- DO NOT MERGE
Currently we write, e.g.,
There's an implicit step here of creating the conditional distribution of
m(x=x)givenobservations, but we currently have no way to write this. Also, it would be useful to move closer to Turing's representation for sampling, which doesn't require observations in a separate argument.At the same time, we need to keep our generative representation. So this is a start on letting us write
Note that the
|here is usually a bitwiseor. But I don't see this being used for models, so the overloading feels safe for this usage.With this change, we now have
Model,JointDistribution, and alsoConditional. Duplicating methods is starting to seem a bit much. So let's addAbstractModeland define operations on that whenever possible.For now, we have
AbstractModel <: Distribution, but we'll soon move this to<: MeasureTheory.Measure