replace math.exp with np.exp#2939
Merged
junpenglao merged 1 commit intopymc-devs:masterfrom Apr 21, 2018
junpenglao:np_exp
Merged
replace math.exp with np.exp#2939junpenglao merged 1 commit intopymc-devs:masterfrom junpenglao:np_exp
junpenglao merged 1 commit intopymc-devs:masterfrom
junpenglao:np_exp
Conversation
Contributor
|
Is a regression test needed?
…On Fri, 20 Apr 2018, 1:58 pm Junpeng Lao, ***@***.***> wrote:
math.exp return overflow error when input is too large. Switching to
np.exp resolves this.
------------------------------
You can view, comment on, or merge this pull request online at:
#2939
Commit Summary
- math.exp to np.exp
File Changes
- *M* pymc3/step_methods/hmc/hmc.py
<https://github.com/pymc-devs/pymc3/pull/2939/files#diff-0> (4)
- *M* pymc3/step_methods/step_sizes.py
<https://github.com/pymc-devs/pymc3/pull/2939/files#diff-1> (16)
Patch Links:
- https://github.com/pymc-devs/pymc3/pull/2939.patch
- https://github.com/pymc-devs/pymc3/pull/2939.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#2939>, or mute the thread
<https://github.com/notifications/unsubscribe-auth/AA8DiLKE6TTCb1RLBGeB_VpXaVnXJ1jSks5tqduPgaJpZM4Tda48>
.
|
Member
|
I think now instead of throwing an error, it will (silently) pass on a Specifically, I don't think we need a regression test. |
Member
Author
Exactly. |
Contributor
|
Ok just asking
…On Fri, 20 Apr 2018, 2:28 pm Junpeng Lao, ***@***.***> wrote:
I think now instead of throwing an error, it will (silently) pass on a
float('inf'), which hopefully other machinery can deal with more
intelligently.
Exactly.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2939 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AA8DiLE6NMY6ZNdJ_Xrv513gKQGcwVatks5tqeJmgaJpZM4Tda48>
.
|
agustinaarroyuelo
pushed a commit
to agustinaarroyuelo/pymc3
that referenced
this pull request
Feb 8, 2019
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
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.
math.exp return overflow error when input is too large. Switching to np.exp resolves this.