pymc.Slice#
- class pymc.Slice(*args, **kwargs)[source]#
Univariate slice sampler step method.
- Parameters:
- vars: list
List of value variables for sampler.
- w: float
Initial width of slice (Defaults to 1).
- tune: bool
Flag for tuning (Defaults to True).
- model: PyMC Model
Optional model for sampling step. Defaults to None (taken from context).
Methods
Slice.__init__([vars, w, tune, model, ...])- Parameters:
Slice.astep(apoint)Perform a single sample step in a raveled and concatenated parameter space.
Slice.competence(var, has_grad)Slice.step(point)Perform a single step of the sampler.
Attributes
default_blockednamestats_dtypesA list containing <=1 dictionary that maps stat names to dtypes.
stats_dtypes_shapesMaps stat names to dtypes and shapes.
varsVariables that the step method is assigned to.