MCMC package — ML-MCMC functionalities (e.g. MLDA) will be added soon.
The samosa/ package is organized as follows:
-
core/ — State (
ChainState), model protocol, and proposal base classes:ProposalBase,AdaptiveProposal,TransportProposalBase. Also the transport map interface and MLMC utilities. -
kernels/ — Transition kernels:
MetropolisHastingsKernel,DelayedRejectionKernel, plus SyncE and transport variants. -
proposals/ — Base proposals (e.g.
GaussianRandomWalk), adapters (HaarioAdapter,GlobalAdapter), and wiring viaAdaptiveProposal. -
samplers/ —
SingleChainSampler(and coupled / MLDA samplers for multi-level and coupling). -
maps/ — Transport maps (
LowerTriangularMap,RealNVPMap,LinearOptimalTransportMap) used withTransportProposalBase. -
utils/ —
tools(e.g.laplace_approx,log_banana) andpost_processing(load_samples,get_position_from_states,scatter_matrix,plot_trace,plot_lag).
Examples are ordered by increasing complexity:
-
Simple — Fixed proposal (e.g. Gaussian random walk), optionally tuned with a Laplace approximation at the MAP.
-
Adaptation — Same base proposal wrapped with an adapter (e.g. Haario or Global) so covariance or scale is adapted during the run.
-
Delayed rejection — After a rejected first stage, propose again (e.g. with scaled covariance) to improve acceptance.
-
Transport maps — Propose in a reference space (e.g. N(0,I)) and map back to the target; the map is often pre-adapted using samples from a previous run.