Skip to content

Commit fcc8969

Browse files
committed
docs: add experimental markers for mclmc
1 parent e7d5ee0 commit fcc8969

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

src/mclmc.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
//! Unadjusted Microcanonical Langevin Monte Carlo (MCLMC) sampler.
22
//!
3+
//! > ⚠️ **Experimental — use with caution**: The MCLMC sampler and all of its
4+
//! > variants are highly experimental. They have not been thoroughly validated
5+
//! > and may **not return correct posteriors**. The API, defaults, and
6+
//! > adaptation behaviour are all subject to breaking changes at any time.
7+
//! > Do not use these samplers in production or for results you rely on.
8+
//!
39
//! This module implements the **unadjusted** version of the MCLMC algorithm
410
//! (Robnik, De Luca, Silverstein & Seljak 2023), using the isokinetic Langevin
511
//! (Ornstein–Uhlenbeck) momentum refresh from the

src/sampler.rs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,12 @@ pub type TransformedNutsSettings = FlowNutsSettings;
239239

240240
/// Settings for the unadjusted Microcanonical Langevin Monte Carlo (MCLMC) sampler.
241241
///
242+
/// > ⚠️ **Experimental — use with caution**: The MCLMC sampler and all of its
243+
/// > variants are highly experimental. They have not been thoroughly validated
244+
/// > and may **not return correct posteriors**. The API, defaults, and
245+
/// > adaptation behaviour are all subject to breaking changes at any time.
246+
/// > Do not use these samplers in production or for results you rely on.
247+
///
242248
/// Step size `ε` and momentum decoherence length `L` are **constants** — no
243249
/// adaptation of those is performed yet. The geometry is adapted during
244250
/// warmup using the sampler-specific adaptation strategy, while the step size
@@ -301,10 +307,19 @@ pub struct MclmcSettings<A: Debug + Copy + Default + Serialize> {
301307
}
302308

303309
/// MCLMC settings with a diagonal mass matrix adaptation.
310+
///
311+
/// > ⚠️ **Experimental — use with caution**: Highly experimental. Correctness
312+
/// > of the returned posteriors has not been verified. May change at any time.
304313
pub type DiagMclmcSettings = MclmcSettings<EuclideanAdaptOptions<DiagAdaptExpSettings>>;
305314
/// MCLMC settings with a low-rank mass matrix adaptation.
315+
///
316+
/// > ⚠️ **Experimental — use with caution**: Highly experimental. Correctness
317+
/// > of the returned posteriors has not been verified. May change at any time.
306318
pub type LowRankMclmcSettings = MclmcSettings<EuclideanAdaptOptions<LowRankSettings>>;
307319
/// MCLMC settings with a learned flow transformation.
320+
///
321+
/// > ⚠️ **Experimental — use with caution**: Highly experimental. Correctness
322+
/// > of the returned posteriors has not been verified. May change at any time.
308323
pub type FlowMclmcSettings = MclmcSettings<FlowSettings>;
309324
/// Backwards-compatible alias for [`FlowMclmcSettings`].
310325
#[deprecated(since = "0.0.0", note = "Use FlowMclmcSettings instead")]

0 commit comments

Comments
 (0)