Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

🎼 Fugue User Guide

Fugue Logo

A production-ready, monadic probabilistic programming library for Rust

Write elegant probabilistic programs by composing Model values in direct style; execute them with pluggable interpreters and state-of-the-art inference algorithms.

Rust Crates.io Dev Docs User Docs License: MIT CI codecov Downloads Zotero Discord Ask DeepWiki

Supported Rust: 1.70+ • Platforms: Linux / macOS / Windows • Crate: fugue-ppl on crates.io


👋 Welcome

Check out these resources to get started:

About Fugue

  • 🧩 Monadic PPL: Compose probabilistic programs using pure functional abstractions
  • 🔒 Type-Safe Distributions: 10+ built-in probability distributions with natural return types
  • 📊 Multiple Inference Methods: MCMC, SMC, Variational Inference, ABC
  • 🔍 Comprehensive Diagnostics: R-hat convergence, effective sample size, validation
  • 🚀 Production Ready: Numerically stable algorithms with memory optimization
  • Ergonomic Macros: Do-notation (prob!), vectorization (plate!), addressing (addr!)

Installation

[dependencies]
fugue-ppl = "0.1.0"

🔍 More Resources