Skip to content

Commit

Permalink
Revert back to using numpy's float type instead of pymc's
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAndorra committed Aug 12, 2020
1 parent f9930d8 commit 0f98497
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymc3/distributions/continuous.py
Original file line number Diff line number Diff line change
Expand Up @@ -3341,7 +3341,7 @@ def logp(self, value):

standardized_val = (value - mu) / sigma
cdf_val = std_cdf(standardized_val - sigma / nu)
cdf_val_safe = tt.switch(tt.eq(cdf_val, 0), np.finfo(floatX).eps, cdf_val)
cdf_val_safe = tt.switch(tt.eq(cdf_val, 0), np.finfo(float).eps, cdf_val)

# This condition is suggested by exGAUS.R from gamlss
lp = tt.switch(
Expand Down

0 comments on commit 0f98497

Please sign in to comment.