RTO sampler with the Wang example #118
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The example is ready. However there is an issue with the gradient in the Wang model. So far we take gradients of PDFs with respect to model functions. But for RTO we need the gradient with respect to a transformation into the standard Gaussian space. The current gradient implementation does not includes this setting, since the 'direction' concept is different now.
As a result, the demo_Wang example is not running. However, I tested it, and it runs using the correct gradient.
Recall this is the setup for non-Gaussian priors:

Moreover, this is the idea of the adaptive RTO for Q (ref to Wang's: http://dspace.mit.edu/handle/1721.1/98815):
