Skip to content

Commit 6857729

Browse files
authored
Updated pymc.Gamma docstring (#5496)
* Updated pymc.Gamma docstring * address review comments
1 parent f6ab770 commit 6857729

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pymc/distributions/continuous.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2244,6 +2244,7 @@ class Gamma(PositiveContinuous):
22442244
\frac{\beta^{\alpha}x^{\alpha-1}e^{-\beta x}}{\Gamma(\alpha)}
22452245
22462246
.. plot::
2247+
:context: close-figs
22472248
22482249
import matplotlib.pyplot as plt
22492250
import numpy as np
@@ -2278,13 +2279,13 @@ class Gamma(PositiveContinuous):
22782279
22792280
Parameters
22802281
----------
2281-
alpha: float
2282+
alpha : tensor_like or float, optional
22822283
Shape parameter (alpha > 0).
2283-
beta: float
2284+
beta : tensor_like or float, optional
22842285
Rate parameter (beta > 0).
2285-
mu: float
2286+
mu : tensor_like or float, optional
22862287
Alternative shape parameter (mu > 0).
2287-
sigma: float
2288+
sigma : tensor_like or float, optional
22882289
Alternative scale parameter (sigma > 0).
22892290
"""
22902291
rv_op = gamma
@@ -2339,7 +2340,7 @@ def logcdf(value, alpha, inv_beta):
23392340
23402341
Parameters
23412342
----------
2342-
value: numeric or np.ndarray or `TensorVariable`
2343+
value : tensor_like
23432344
Value(s) for which log CDF is calculated. If the log CDF for
23442345
multiple values are desired the values must be provided in a numpy
23452346
array or `TensorVariable`.

0 commit comments

Comments
 (0)