Skip to content

Commit

Permalink
reverted change to measurable_transform_logprob
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke LB committed Apr 28, 2023
1 parent 2f3087c commit 11d41db
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pymc/logprob/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,7 @@ def measurable_transform_logprob(op: MeasurableTransform, values, *inputs, **kwa
jacobian = jacobian.sum(axis=tuple(range(-ndim_supp, 0)))

# The jacobian is used to ensure a value in the supported domain was provided
return pt.switch(pt.isnan(input_logprob + jacobian), -np.inf, input_logprob + jacobian)
return pt.switch(pt.isnan(jacobian), -np.inf, input_logprob + jacobian)


@_logcdf.register(MeasurableTransform)
Expand Down Expand Up @@ -739,7 +739,6 @@ def backward(self, value, *inputs):
return pt.arccosh(value)



class TanhTransform(RVTransform):
name = "tanh"
ndim_supp = 0
Expand Down

0 comments on commit 11d41db

Please sign in to comment.