pymc.step_methods.hmc.HamiltonianMC#
- class pymc.step_methods.hmc.HamiltonianMC(*args, **kwargs)[source]#
A sampler for continuous variables based on Hamiltonian mechanics.
See NUTS sampler for automatically tuned stopping time and step size scaling.
Methods
HamiltonianMC.__init__([vars, path_length, ...])Set up the Hamiltonian Monte Carlo sampler.
Perform a single HMC iteration.
HamiltonianMC.competence(var, has_grad)Check how appropriate this class is for sampling a random variable.
HamiltonianMC.reset([start])HamiltonianMC.reset_tuning([start])HamiltonianMC.step(point)Perform a single step of the sampler.
Attributes
default_blockednamesampling_statestats_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.
integrator