-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Derive logprob for hyperbolic and error transformations #6664
Merged
Merged
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
f5ee4de
added tranform classes for sinh cosh and tanh
d80d8ec
cleaned up if block in find_measurable_transform
592068f
added an erfcx transform
236e7d7
added erf, erfc, erfcx now working in notebook
05b8d55
added a comment to erfcx backward fn and simplified the iteration code
1825315
used scan for erfcx and got test running
f847786
test now running and passing on all but erfc and erfcx, will fix
b5e1517
test 2. now passing
3c5c733
Simplify nan to ninf in test
ricardoV94 b8bf86f
Adapt default `RVTransform.log_jac_det` to univariate and vector tran…
ricardoV94 bcc1eb9
Use np.testing in check_jacobian_det
ricardoV94 43f4150
Use default log_jac_det in ErfTransform
ricardoV94 c429b2d
tests fixed, required removing handwritten log_jac_det
2f3087c
Update pymc/logprob/transforms.py
LukeLB 11d41db
reverted change to measurable_transform_logprob
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
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.
Can we revert this change?
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.
Potentially let me check. The reason I did that was because it meant that we return
-np.inf
consistently wheninput_logprob = nan
, which is the case for some of the transforms.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.
Okay seems that isn't the case anymore and tests pass with the reverted change