Skip to content

initializing NUTS window adapatation with non-default mass matrix #759

Answered by junpenglao
ismael-mendoza asked this question in Q&A
Discussion options

You must be logged in to vote

It is not something easy to do:
You can modify the init in https://github.com/blackjax-devs/blackjax/blob/main/blackjax/adaptation/window_adaptation.py#L105-L125 to take an initial mass matrix. However, note that the initial mass matrix would be used to generate samples for taking sample for the mass matrix adaptation (started from the first slow window), which then get replace with the inverse mass matrix estimated from the first slow window at the end. If this is your intention, then great; but if you want to actually adapt the inverse mass matrix starting from the your matrix input, it is much more complicated because you need to modify the welford_algorithm https://github.com/blackjax…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ismael-mendoza
Comment options

Answer selected by ismael-mendoza
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants