pycmdstan
Python interface to CmdStan.
Usage
After installing, pip install -U pycmdstan, a contrived example would be
from pycmdstan import Model, Run
model = Model('''
data { vector[20] x; real mu; }
parameters { real sig; }
model { x ~ normal(mu, sig); }
''')
assert model.sample(data={'mu': 5.0, x: randn(20)}, chains=4).R_hat.max() < 1.2
See the docs for more.
Contributing
Contributions are welcome, please start in the issue tracker. Use YAPF to format the code. The Dockerfile can ease local development,
docker build -t pycmdstan .
docker run --rm -it pycmdstan pytest -n4 pycmdstan/tests.py
Acknowledgements
- PSIS code is by Aki Vehtari & Tuomas Sivula (BSD licensed, repo here)
Metadata
Release files for pycmdstan 0.9
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pycmdstan-0.9.tar.gz | 14.4 kB | Without provenance | Details for pycmdstan-0.9.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pycmdstan-0.9-py3-none-any.whl | Python 3 | none | any | Details for pycmdstan-0.9-py3-none-any.whl |
Total release size: 30.7 kB
Release files / pycmdstan-0.9.tar.gz
| Download URL | pycmdstan-0.9.tar.gz |
|---|---|
| Size | 14.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d354b58820ae5af060270b9ba1f0d2a6d7eed90ebd9396515f6cc47cd7d833bd
|
|
BLAKE2b-256 checksum How to use checksums |
074f016417b22677b5c6cb3429568229412162b867d9dd4b4304e2adcd1bcd7b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pycmdstan-0.9-py3-none-any.whl
| Download URL | pycmdstan-0.9-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
073f90eeefb3bd87ade72c10ee2992091781e50eed9d42313f01fa4409f4e0c1
|
|
BLAKE2b-256 checksum How to use checksums |
3d8b9ad738ee7e83325d2a3eebd6dd45774a9f0994a4e25e13c18eba2af4aea0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pycmdstan 0.9
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.