Skip to content

Commit

Permalink
Changed at.eq to at.isclose in logp as Ricardo suggested.
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke LB committed Jan 19, 2022
1 parent 1bdc442 commit d563930
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymc/distributions/multivariate.py
Original file line number Diff line number Diff line change
Expand Up @@ -583,7 +583,7 @@ def logp(value, n, p):
return check_parameters(
res,
p <= 1,
at.eq(at.sum(p, axis=-1), 1),
at.isclose(at.sum(p, axis=-1), 1),
at.ge(n, 0),
msg="p <= 1, sum(p) = 1, n >= 0",
)
Expand Down

0 comments on commit d563930

Please sign in to comment.