Skip to content

Commit d322b81

Browse files
committed
Refine Interval docstrings and fix typo
1 parent 0246701 commit d322b81

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

pymc/distributions/transforms.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -190,21 +190,21 @@ class Interval(IntervalTransform):
190190
191191
Parameters
192192
----------
193-
lower : int, float, or None
194-
Lower bound of the interval transform. Must be a constant value. If ``None``, the
195-
interval is not bounded below.
196-
upper : int, float or None
197-
Upper bound of the interval transfrom. Must be a finite value. If ``None``, the
198-
interval is not bounded above.
199-
bounds_fn : callable
193+
lower : int or float, optional
194+
Lower bound of the interval transform. Must be a constant finite value.
195+
By default (``lower=None``), the interval is not bounded below.
196+
upper : int or float, optinoal
197+
Upper bound of the interval transform. Must be a constant finite value.
198+
By default (``upper=None``), the interval is not bounded above.
199+
bounds_fn : callable, optional
200200
Alternative to lower and upper. Must return a tuple of lower and upper bounds
201-
as a symbolic function of the respective distribution inputs. If lower or
201+
as a symbolic function of the respective distribution inputs. If one of lower or
202202
upper is ``None``, the interval is unbounded on that edge.
203203
204204
.. warning:: Expressions returned by `bounds_fn` should depend only on the
205-
distribution inputs or other constants. Expressions that depend on other
206-
symbolic variables, including nonlocal variables defined in the model
207-
context will likely break sampling.
205+
distribution inputs or other constants. Expressions that depend on nonlocal
206+
variables, such as other distributions defined in the model context will
207+
likely break sampling.
208208
209209
210210
Examples

0 commit comments

Comments
 (0)