-
Notifications
You must be signed in to change notification settings - Fork 416
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
Generalize Product
#1391
Merged
Merged
Generalize Product
#1391
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
34cd1ac
Move `src/multivariate/product.jl`
devmotion 2758c6a
Generalize `Product` to `ProductDistribution`
devmotion 541e265
Add implementations for more general product distributions
devmotion 5c7a82a
Merge branch 'master' into dw/product
devmotion c951804
Unify and generalize `rand!`, `logpdf` and `pdf`
devmotion f4d9184
Merge branch 'master' into dw/product
devmotion 39ad15e
Revert unrelated changes and fix tests
devmotion 5417bb5
Propagate `@inbounds`
devmotion 0ce8ee3
Remove unneeded implementation
devmotion b0a369d
Fix typos
devmotion 52bd470
Fix some dispatches
devmotion bf140cc
More fixes
devmotion 343d266
Support tuple of distributions and mix of discrete + continuous
devmotion 120c3f1
Fix additional test errors
devmotion 867a21e
Fix method ambiguity
devmotion f86549b
Fix `VonMisesFisherSampler`
devmotion 6847f71
Fix mixture sampler
devmotion 84ee30c
Simplify multinomial sampler
devmotion bab927b
Fix `loglikelihood` for univariate distributions
devmotion 1414e97
Add ReshapedDistribution
devmotion 7df43ce
Fix typo
devmotion 768ea61
Revert some changes
devmotion 19c7c49
Update product.jl
devmotion b3c6a9c
Merge branch 'master' into dw/product
devmotion 2e7341b
Remove duplicate `eachvariate`/`EachVariate`
devmotion 97d3a0a
Reintroduce `Product`
devmotion 167f319
Improve type inference
devmotion b190369
Add explanations of `ValueSupport`
devmotion e1fa4b5
Fix typo
devmotion 55e6c5b
Remove another breaking change
devmotion 1a574fa
Merge branch 'master' into dw/product
devmotion File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.
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.
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.
Maybe I'm just brainfarting, but it seems like this combined with the
@deprecate
below means that no matter which constructor I use for a vector of univariate distributions, I'm going to get a deprecation-warning?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.
Yes, at the moment one always get's a depwarn ... #1589
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.
Yeah it's unfortunate and fixed by #1590. I thought someone would approve the PR and I would be able to make a bugfix release shortly after the issue was discovered but it seems nobody has approved it within almost two weeks. I'm going to merge it and tag a release now since the issue is quite annoying for downstream packages (and AFAICT even causes time outs in Turing).
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 @devmotion !
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.
Wonderful stuff @devmotion !