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

Cache cholesky decomposition to improve NUTS efficiency #24

Closed
yebai opened this issue Jan 21, 2019 · 2 comments
Closed

Cache cholesky decomposition to improve NUTS efficiency #24

yebai opened this issue Jan 21, 2019 · 2 comments
Assignees

Comments

@yebai
Copy link
Member

yebai commented Jan 21, 2019

The NUTS sampler computes Cholesky decomposition on the fly for each Hamiltonian step. This is likely one of the performance bottlenecks for NUTS since Cholesky decomposition is a costly operation and should be computed only once adaption is done.

https://github.com/TuringLang/Turing.jl/blob/5c94eebd5a8a0fe2471ac3fa08341d3e2d054186/src/inference/support/hmc_core.jl#L107

Related: https://github.com/TuringLang/Turing.jl/issues/559

@trappmartin
Copy link
Member

I'll have a look at this.

@trappmartin trappmartin self-assigned this Feb 7, 2019
@yebai
Copy link
Member Author

yebai commented Mar 1, 2019

Fixed by #5

@yebai yebai transferred this issue from TuringLang/Turing.jl Mar 22, 2019
@yebai yebai closed this as completed Apr 4, 2019
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

2 participants