Skip to content

Commit

Permalink
Minor doc string fixes (#3528)
Browse files Browse the repository at this point in the history
(Definitional) Change "K dimensional simplex space" to "K - 1 dimensional simplex space"
Update doc strings of sumto1 and stick_breaking transforms in transforms.py
  • Loading branch information
Harivallabha authored and rpgoldman committed Jun 27, 2019
1 parent 26f3325 commit 5ce6403
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pymc3/distributions/transforms.py
Expand Up @@ -400,7 +400,7 @@ def jacobian_det(self, y):

class SumTo1(Transform):
"""
Transforms K dimensional simplex space (values in [0,1] and sum to 1) to K - 1 vector of values in [0,1]
Transforms K - 1 dimensional simplex space (k values in [0,1] and that sum to 1) to a K - 1 vector of values in [0,1]
This Transformation operates on the last dimension of the input tensor.
"""

Expand Down Expand Up @@ -430,7 +430,7 @@ def jacobian_det(self, x):

class StickBreaking(Transform):
"""
Transforms K dimensional simplex space (values in [0,1] and sum to 1) to K - 1 vector of real values.
Transforms K - 1 dimensional simplex space (k values in [0,1] and that sum to 1) to a K - 1 vector of real values.
Primarily borrowed from the STAN implementation.
Parameters
Expand Down

0 comments on commit 5ce6403

Please sign in to comment.