Skip to content

Cholesky decomposition performed for every sample(?) #760

@junpenglao

Description

@junpenglao

Discussed in #758

Originally posted by jonny-so December 4, 2024
Hi, unless I have missed something, it looks as though (e.g.) the NUTS sampler implementation creates a new Euclidean metric object for every sample

metric = metrics.default_metric(inverse_mass_matrix)
which in turn performs a Cholesky decomposition of the (inverse) mass matrix. Is that correct? It should only be necessary to do this at the end of the adaptation windows. In principle the compiler could be eliding the redundant calls, but I would guess that is asking too much of it in this case.

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