Lightweight Python interface to CmdStan
open sourceBSD-3-Clausefree
CmdStanPy is a lightweight, pure Python interface to CmdStan, giving access to the Stan compiler and all of its inference algorithms. Python never talks to C++ directly: it compiles models and runs the CmdStan executables, tracking their input and output files, with only numpy and pandas as dependencies. Defaults suit development (output on a temporary filesystem), and every option can be set for production runs across machines; it installs CmdStan itself with install_cmdstan().
Problems it solves
- fit a Stan model from Python
- run MCMC for a Bayesian model in a Python pipeline
- install and use CmdStan from Python
Features
- compile Stan models and run every CmdStan inference method
- pure Python, depends only on numpy and pandas
- development-friendly defaults with full control for production
- installs CmdStan for you
Alternatives
The same job
These do what CmdStanPy does.
