Skip to content

Commit 61fa834

Browse files
kc611ricardoV94
authored andcommitted
Fixed docstring of get_moment()
1 parent dd4068d commit 61fa834

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pymc3/distributions/distribution.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -339,17 +339,15 @@ def dist(
339339

340340
@singledispatch
341341
def _get_moment(op, rv, size, *rv_inputs) -> TensorVariable:
342-
"""Fallback method for creating an initial value for a random variable.
343-
344-
Parameters are the same as for the `.dist()` method.
345-
"""
346342
return None
347343

348344

349345
def get_moment(rv: TensorVariable) -> TensorVariable:
350-
"""Fallback method for creating an initial value for a random variable.
346+
"""Method for choosing a representative point/value
347+
that can be used to start optimization or MCMC sampling.
351348
352-
Parameters are the same as for the `.dist()` method.
349+
The only parameter to this function is the RandomVariable
350+
for which the value is to be derived.
353351
"""
354352
size = rv.owner.inputs[1]
355353
return _get_moment(rv.owner.op, rv, size, *rv.owner.inputs[3:])

0 commit comments

Comments
 (0)