Skip to content

feat: add warmup workflow output#11

Merged
kholdrex merged 1 commit into
masterfrom
feat/warmup-workflow
Jun 2, 2026
Merged

feat: add warmup workflow output#11
kholdrex merged 1 commit into
masterfrom
feat/warmup-workflow

Conversation

@kholdrex

@kholdrex kholdrex commented Jun 2, 2026

Copy link
Copy Markdown
Member

Summary

Adds a first-class warmup/burn-in workflow for MCMC samplers so callers can keep discarded warmup states separate from retained posterior draws. The existing sample_with_warmup API remains available for callers that only need retained samples.

Changes

  • Adds WarmupMetadata and WarmupRun for warmup counts, retained counts, total iterations, discarded warmup samples, and retained posterior samples.
  • Adds Sampler::run_with_warmup while preserving the lightweight sample_with_warmup behavior.
  • Covers zero-warmup, zero-retained, retained-only compatibility, and Metropolis-Hastings statistics reset behavior with deterministic tests.

Test Plan

  • cargo fmt --all -- --check
  • cargo clippy --all-targets --all-features -- -D warnings
  • cargo test --all-features
  • RUSTDOCFLAGS="-D warnings" cargo doc --all-features --no-deps --document-private-items
  • cargo bench --no-run --all-features

@kholdrex kholdrex merged commit 0f76fdd into master Jun 2, 2026
7 checks passed
@kholdrex kholdrex deleted the feat/warmup-workflow branch June 2, 2026 04:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant