Skip to content

Commit

Permalink
Update pymc/logprob/transforms.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ricardo Vieira <[email protected]>
  • Loading branch information
LukeLB and ricardoV94 authored Jul 17, 2023
1 parent c2a7141 commit 48166a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymc/logprob/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@ def measurable_special_exp_to_exp(fgraph, node):
if isinstance(node.op.scalar_op, Exp2):
return [pt.power(2, inp)]
if isinstance(node.op.scalar_op, Expm1):
return [pt.exp(inp + 1)]
return [pt.exp(inp) - 1]
if isinstance(node.op.scalar_op, Sigmoid):

Check warning on line 568 in pymc/logprob/transforms.py

View check run for this annotation

Codecov / codecov/patch

pymc/logprob/transforms.py#L568

Added line #L568 was not covered by tests
return [1 / (1 + pt.exp(-inp))]

Expand Down

0 comments on commit 48166a2

Please sign in to comment.