amortized-workflow

Implement a guarded amortized Bayesian workflow for simulation-based inference with BayesFlow.

161|18|Updated Mar 2, 2026
One-click install
npx skills add https://github.com/Learning-Bayesian-Statistics/baygent-skills --skill amortized-workflow
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: amortized-workflow
Source: https://github.com/Learning-Bayesian-Statistics/baygent-skills/tree/main/amortized-workflow
Command: npx skills add https://github.com/Learning-Bayesian-Statistics/baygent-skills --skill amortized-workflow

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pandas, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Provides a structured, guarded end-to-end workflow for performing amortized Bayesian inference with BayesFlow, enforcing best practices and guardrails to improve reliability and reproducibility.

Core Features & Use Cases

  • Enforces the complete amortized Bayesian workflow: formulate the generative model, configure simulator regimes (offline, online, or disk training), choose architecture, build the adapter, train, diagnose, perform PPCs, and generate reports.
  • Provides strong guardrails and conventions (validation data, diagnostics, reporting) to ensure repeatable analyses across projects and datasets.
  • Integrates with BayesFlow networks (SetTransformer, DiffusionModel, FlowMatching, etc.) and supports both vector and structured data (sets, time series, images) via the conditioning logic.
  • Works with compatible agents and supports multiple deployment modalities (Claude Code, Kimi Code, Cursor, Gemini CLI) per the Agent Skills spec.

Quick Start

Install BayesFlow and run the provided workflow to train an amortized estimator with offline training.

Frequently Asked Questions about amortized-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run a complete amortized Bayesian inference workflow using simulation-based inference?

An amortized Bayesian workflow guides you through formulating a generative model, configuring simulator regimes, building an adapter, training, and generating diagnostic reports for simulation-based inference.

What are the steps to configure offline, online, or disk training pipelines in BayesFlow?

Configuring BayesFlow training pipelines involves selecting offline, online, or disk regimes, choosing summary and inference networks, and applying an explicit adapter for data transformation.

Can I use structured data like time series or images with Bayesian simulation-based inference?

Yes, simulation-based inference supports structured data including sets, time series, and images by leveraging conditioning logic within compatible summary networks like SetTransformer or DiffusionModel.

How do I validate and diagnose an amortized Bayesian estimator after training?

Validating an amortized Bayesian estimator requires applying the diagnostic and reporting toolchain, running posterior predictive checks, and utilizing structured guardrails to ensure repeatable analyses.

Does simulation-based inference require prior design and simulator budget planning?

Yes, prior design and simulator budget planning are required steps in the amortized Bayesian workflow to enforce best practices and improve the reliability of simulation-based inference.

What is the best way to ensure reproducibility when performing Bayesian inference with BayesFlow?

Reproducibility in Bayesian inference is ensured by enforcing strong guardrails, conventions, and validation data throughout the workflow, from prior design to diagnostic reporting.