1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
//! Variational Inference Methods
//!
//! This module provides modern variational inference algorithms for approximate
//! Bayesian posterior computation:
//!
//! - **ADVI**: Automatic Differentiation Variational Inference (Kucukelbir et al. 2017)
//! with mean-field and full-rank Gaussian approximations, automatic parameter
//! transformations, ELBO optimization via reparameterization trick + Adam optimizer.
//!
//! - **SVGD**: Stein Variational Gradient Descent (Liu & Wang 2016) — a particle-based
//! method that transports a set of particles to approximate the posterior using
//! kernelized Stein discrepancy with RBF kernel and median bandwidth heuristic.
//!
//! - **Normalizing Flows**: Flexible posterior approximations via invertible
//! transformations (planar and radial flows) with log-determinant Jacobian tracking.
pub use *;
pub use *;
pub use *;
use crateStatsResult;
use Array1;
// ============================================================================
// Common Trait
// ============================================================================
/// Result of variational inference
/// Common trait for variational inference methods