pymc.distributions.transforms.SumTo1#
- class pymc.distributions.transforms.SumTo1(ndim_supp=0)[source]#
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.
Methods
SumTo1.__init__
([ndim_supp])SumTo1.backward
(value, *inputs)Invert the transformation.
SumTo1.forward
(value, *inputs)Apply the transformation.
SumTo1.log_jac_det
(value, *inputs)Construct the log of the absolute value of the Jacobian determinant.
Attributes
name