pymc.HamiltonianMC#

class pymc.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.

HamiltonianMC.astep(q0)

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.

HamiltonianMC.stop_tuning()

HamiltonianMC.warnings()

Attributes

default_blocked

generates_stats

name

stats_dtypes

vars