HMCMoveSpec

class jaxrens.cli.schema.moves.HMCMoveSpec(*, step_size=0.1, weight=1.0, adaptation_warmup=100, target_acceptance=0.5, name=None, type='hmc', n_leapfrog=10)[source]

Bases: BaseMoveSpec

Hamiltonian Monte Carlo with a leapfrog integrator.

Draws fresh momenta, integrates the equations of motion for n_leapfrog steps, and accepts on the energy error. Travels much further per proposal than a random walk, at n_leapfrog energy-and-force evaluations each.

moves:
  - {type: hmc, n_leapfrog: 20, step_size: 0.05, weight: 1}
Parameters:
model_config = {'extra': 'forbid', 'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].