-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Support logp derivation in DensityDist
#6361
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
Merged
Merged
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
ricardoV94
commented
Dec 1, 2022
DensityDist
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6361 +/- ##
===========================================
- Coverage 94.71% 63.90% -30.81%
===========================================
Files 132 131 -1
Lines 26695 26928 +233
===========================================
- Hits 25284 17209 -8075
- Misses 1411 9719 +8308
|
ba24785
to
b1dd7ba
Compare
Old DensityDist alias is kept
b1dd7ba
to
89e3ebc
Compare
ricardoV94
commented
Dec 7, 2022
89e3ebc
to
806d1d8
Compare
806d1d8
to
bcfff6d
Compare
Do you think it might be good to have a stub |
It's there. Didn't even deprecate it because it's so commonly used. |
michaelosthege
approved these changes
Dec 9, 2022
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.
This PR allows users to return Aesara random graphs in the
random
method ofDensityDist
(now renamed toCustomDist
), to be used in prior and posterior predictive sampling, as well as for automatic logp derivation using PyMC machinery.For now, using this functionality will issue an experimental warning.
Closes #4530
Closes #4507
Here is an example that address this discourse help request: https://discourse.pymc.io/t/inference-with-aesara-pymc/10945
Major / Breaking Changes
Bugfixes / New features
CustomDist
now accepts Aesara random graphs via therandom
kwarg. PyMC can sometimes infer the logp of these distributions without the need for a user to provide alogp
function. This functionality is experimental!Docs / Maintenance
DensityDist
is now an alias toCustomDist