View source: R/bayes_hmc_utils.R
| infhmc_step_batch | R Documentation |
Runs infhmc_step() on N conditionally independent blocks at once
(one column of c per block), sharing a target of the form
\prod_i \exp(-\mathrm{nll}_i(c_i)) N(c_i; 0, \mathrm{diag}(C)). All
blocks integrate the same (random) number of leapfrog steps, with their
own step sizes, and each is accepted or rejected on its own energy change.
infhmc_step_batch(c, nll, g, aux, geom, C, epsilon, L)
c |
a |
nll, g |
negative log-likelihoods and gradients of |
aux |
extra output of |
geom |
a function of |
C |
prior variances |
epsilon |
step sizes, scalar or of length |
L |
maximum number of leapfrog steps |
A list with the new states and their geometry, the per-block
acceptance indicators and the per-block acceptance probabilities alpha
(0 where the trajectory left the support), for step-size adaptation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.