Skip to content

Commit 2c49e8d

Browse files
lucianopazColCarroll
authored andcommitted
Fixed the DensityDist docstring (#3648)
1 parent c760a85 commit 2c49e8d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

pymc3/distributions/distribution.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -238,9 +238,11 @@ def __init__(
238238
The behavior of this callable can be altered with the
239239
``wrap_random_with_dist_shape`` parameter.
240240
The supplied callable must have the following signature:
241-
``random(size=None, **kwargs)``, where ``size`` is the number of
242-
IID draws to take from the distribution. Any extra keyword
243-
argument can be added as required.
241+
``random(point=None, size=None, **kwargs)``, where ``point`` is a
242+
``None`` or a dictionary of random variable names and their
243+
corresponding values (similar to what ``MultiTrace.get_point``
244+
returns). ``size`` is the number of IID draws to take from the
245+
distribution. Any extra keyword argument can be added as required.
244246
wrap_random_with_dist_shape: bool (Optional)
245247
If ``True``, the provided ``random`` callable is passed through
246248
``generate_samples`` to make the random number generator aware of

0 commit comments

Comments
 (0)