- class pymc.CategoricalGibbsMetropolis(*args, **kwargs)[source]#
A Metropolis-within-Gibbs step method optimized for categorical variables.
This step method works for Bernoulli variables as well, but it is not optimized for them, like BinaryGibbsMetropolis is. Step method supports two types of proposals: A uniform proposal and a proportional proposal, which was introduced by Liu in his 1996 technical report “Metropolized Gibbs Sampler: An Improvement”.
Perform a single sample step in a raveled and concatenated parameter space.
CategoricalGibbsMetropolis is only suitable for Bernoulli and Categorical variables.
Perform a single step of the sampler.