File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
docs/source/api/distributions Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -33,6 +33,7 @@ Specific Transform Classes
33
33
LogExpM1
34
34
Ordered
35
35
SumTo1
36
+ ZeroSumTransform
36
37
37
38
38
39
Transform Composition Classes
Original file line number Diff line number Diff line change @@ -2422,7 +2422,7 @@ class ZeroSumNormal(Distribution):
2422
2422
Necessary if ``shape`` is not passed.
2423
2423
shape: tuple of integers, optional
2424
2424
Shape of the distribution. Works the same as for other PyMC distributions.
2425
- Necessary if ``dims`` is not passed.
2425
+ Necessary if ``dims`` or ``observed`` is not passed.
2426
2426
2427
2427
Warnings
2428
2428
--------
Original file line number Diff line number Diff line change @@ -276,21 +276,20 @@ class ZeroSumTransform(RVTransform):
276
276
Constrains any random samples to sum to zero along the user-provided ``zerosum_axes``.
277
277
By default (``zerosum_axes=[-1]``), the sum-to-zero constraint is imposed
278
278
on the last axis.
279
+
280
+ Parameters
281
+ ----------
282
+ zerosum_axes : list of ints
283
+ Must be a list of integers (positive or negative).
284
+ By default (``zerosum_axes=[-1]``), the sum-to-zero constraint is imposed
285
+ on the last axis.
279
286
"""
280
287
281
288
name = "zerosum"
282
289
283
290
__props__ = ("zerosum_axes" ,)
284
291
285
292
def __init__ (self , zerosum_axes ):
286
- """
287
- Parameters
288
- ----------
289
- zerosum_axes : list of ints
290
- Must be a list of integers (positive or negative).
291
- By default (``zerosum_axes=[-1]``), the sum-to-zero constraint is imposed
292
- on the last axis.
293
- """
294
293
self .zerosum_axes = tuple (int (axis ) for axis in zerosum_axes )
295
294
296
295
def forward (self , value , * rv_inputs ):
You can’t perform that action at this time.
0 commit comments