Loading...
Searching...
No Matches
gpr::laplace::SteinVariationalConfig Struct Reference

#include <gpr/ml/laplace/SteinVariational.h>

Public Attributes

int n_iterations = 10
double step_size = 0.05
double conv_tol = 1e-3
 early-stop on max particle move
double init_f0 = 0.0
 CCD init radius; 0 = sqrt(p + 2).

Detailed Description

Configuration knobs for SVGD::fit, mirroring the AtomicDimer::VarianceGateConfig pattern: a small named-field struct with all defaults visible in one place. Avoids hardcoded magic literals at the call site (T=30, eps=0.05) and lets bench / test code dial them without recompiling.

Definition at line 75 of file SteinVariational.h.

Member Data Documentation

◆ conv_tol

double gpr::laplace::SteinVariationalConfig::conv_tol = 1e-3

early-stop on max particle move

Definition at line 88 of file SteinVariational.h.

◆ init_f0

double gpr::laplace::SteinVariationalConfig::init_f0 = 0.0

CCD init radius; 0 = sqrt(p + 2).

Definition at line 89 of file SteinVariational.h.

◆ n_iterations

int gpr::laplace::SteinVariationalConfig::n_iterations = 10

T – max SVGD iterations per fit. With conv_tol = 1e-3, Liu-Wang 2016 Section 5 reports convergence in 5-15 iterations on posterior targets initialised at the CCD grid (which is the case for fitSVGDFromScratch – particles start at the LaplaceINLA Hessian eigenvectors, already inside the posterior mode's basin). T = 10 is the early-converge cap; the conv_tol-driven break short-circuits even sooner on well-conditioned fixtures. Override to T = 30 for unconverged or multimodal targets where the full T iterations are needed.

Definition at line 85 of file SteinVariational.h.

◆ step_size

double gpr::laplace::SteinVariationalConfig::step_size = 0.05

eps – gradient step (Liu-Wang 0.1 with AdaGrad; we use 0.05 fixed)

Definition at line 86 of file SteinVariational.h.


The documentation for this struct was generated from the following file: