Skip to content

Feature request: Ability to sample momenta for HMC with mass matrix #558

@SamuelBrand1

Description

@SamuelBrand1

At the moment the HMC sampler only allows for the mass matrix of the momenta to be an (implicit) identity.

function sample_momenta(n::Int)
Float64[random(normal, 0, 1) for _=1:n]
end

It should be straightforward to allow diagonal and dense options here to bring this HMC sampler in line with common usage?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions