Unit#
- class hmclab.MassMatrices.Unit(dimensions: int = - 1, rng: Optional[numpy.random._generator.Generator] = None)[source]#
Bases:
hmclab.MassMatrices._AbstractMassMatrix
The unit mass matrix.
This mass matrix or metric does not perform any scaling on the target distribution. It is the default setting for the HMC algorithms and is optimal when all parameters of your target distribution are expected to have the same variance and no trade-offs.
- __init__(dimensions: int = - 1, rng: Optional[numpy.random._generator.Generator] = None)[source]#
Constructor for unit mass matrices
Methods
Constructor for unit mass matrices
create_default
full_name
- param momentum
- param momentum
Attributes
dimensions
name
rng
- property matrix: numpy.ndarray#