#include <sample_adaptive_mh.h>
template<class SimpleVector>
template<class SimpleVector>
template<class SimpleVector>
template<class SimpleVector>
virtual void Simple_adaptive_mh_step< SimpleVector >::adapt |
( |
double |
accept_prob, |
|
|
const SimpleVector & |
previous_state, |
|
|
const SimpleVector & |
proposed_state, |
|
|
const SimpleVector & |
accepted_state |
|
) |
| |
|
inlinevirtual |
template<class SimpleVector>
get cholesky decomposition of covariance matrix before incorporating global scale. This should be multiplied by the global scale to get the actual covariance
template<class SimpleVector>
returns the current learning rate (for debugging)
template<class SimpleVector>
get global scaling constant
template<class SimpleVector>
returns the log of the current scaling lambda
template<class SimpleVector>
template<class SimpleVector>
Use constant learning rate, . When iteration exceeds change_point, adaptation ceases to occur.
Setting change_point to zero causes adaptation to occur indefinitely, but the markov chain will no longer converge to the target distribution. In some situations this is okay, because the convergent distribution is a reasonable approximation to the target distribution, but use with caution.
template<class SimpleVector>
Let be the adaptation learning rate at iteration i. Calling this function will define the sequence of 's to be:
= C * i^{-} Where >= 0. Recommended values: C<=1, alpha >= 0.5.
Smaller C corresponds to greater confidence in the initial covariance matrix. Increasing alpha corresponds to faster vanishing of the adaptation term, i.e. adaptation will "stop" sooner.
Setting alpha >= 0.5 will ensure that the rate of convergence of the Markov Chain is unaffected by adaptation. See (Andrieu and Thoms, 2008) for details.
template<class SimpleVector>
Set a function that will be called at the end of every iteration. Useful for logging/debugging of adaptation
template<class SimpleVector>
template<class SimpleVector>
The documentation for this class was generated from the following file: