Skip to content

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

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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