| batch_means_estimator | R Documentation |
Estimate the asymptotic covariance from a single SGD trajectory using the increasing-batch construction from Xi et al. (2020).
batch_means_estimator(
trajectory,
alpha = 0.501,
M = NULL,
N = NULL,
drop_burnin = TRUE,
burnin_iter = 0
)
trajectory |
numeric matrix with rows = iterations and columns = parameters. |
alpha |
stepsize decay exponent in
|
M |
number of retained batches (excluding burn-in batch 0). If 'NULL',
use |
N |
decorrelation constant in
|
drop_burnin |
logical; if 'TRUE', discard batch 0. |
burnin_iter |
non-negative integer. Explicitly discard the first 'burnin_iter' iterations before building Xi-style batches. After trimming, batch boundaries are rebuilt from iteration 1 of the retained trajectory. |
A list containing the covariance estimate, pooled mean, batch sizes, batch boundaries, and chain-level metadata.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.