Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cholesky decomposition performed for every sample(?) #760

Open
junpenglao opened this issue Dec 5, 2024 Discussed in #758 · 0 comments
Open

Cholesky decomposition performed for every sample(?) #760

junpenglao opened this issue Dec 5, 2024 Discussed in #758 · 0 comments

Comments

@junpenglao
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant