Skip to content

Commit

Permalink
Update pymc/model.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ricardo Vieira <28983449+ricardoV94@users.noreply.github.com>
  • Loading branch information
Dhruvanshu-Joshi and ricardoV94 authored Feb 2, 2023
1 parent 78426b3 commit 7f24035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pymc/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -2049,7 +2049,7 @@ def Potential(name, var, model=None):
In this example, we define a constraint on the sum of x and y to be less than 1. We pass this constraint to the ``pm.Potential`` function.
Now, the probability density that the model produces takes into consideration the constraint that the sum of x and y should be less than 1.
The Potential function here acts as a gatekeeper allowing only samples that satisfy the constraint to contribute to the likelihood. This ensures that the sample generated by the sampler are consistent with the constraint.
The Potential function here acts as a gatekeeper allowing only samples that satisfy the constraint to contribute to the likelihood. This ensures that the samples generated by the sampler are consistent with the constraint.
Have a look at the following example:
Expand Down

0 comments on commit 7f24035

Please sign in to comment.