Astrophysics Source Code Library

Making codes discoverable since 1999

ASCL Code Record

[ascl:2302.016] swyft: Scientific simulation-based inference at scale

swyft implements Truncated Marginal Neural Radio Estimation (TMNRE), a Bayesian parameter inference technique for complex simulation data. The code improves performance by estimating low-dimensional marginal posteriors rather than the joint posteriors of distributions, while also targeting simulations to targets of observational interest via an indicator function. The use of local amortization permits statistical checks, enabling validation of parameters that cannot be performed using sampling-based methods. swyft is also based on stochastic simulations, mapping parameters to observational data, and incorporates a simulator manager.

Code site:
Used in:
Described in:
Preferred citation method:

Please see citation information at

Views: 1091

Add this shield to your page
Copy the above HTML to add this shield to your code's website.