Skip to main content

Build Status Latest Version Documentation Status

Pyro API

Generic API for modeling and inference for dispatch to different Pyro backends.


Testing

For testing API compatibility on different backends, install pytest and other test dependencies that includes backends like funsor and numpyro and run the test suite:

pip install -e .[test]
pytest -vs

This library has no dependencies and can easily be installed for testing your particular Pyro backend implementation. You can use the following pattern and test your backend on models in the pyroapi.testing module.

from pyro_api.dispatch import pyro_backend
from pyro_api.testing import MODELS


# Register backend
with pyro_backend(handlers='my_backend.handlers', 
                  distributions='my_backend.distributions',
                  ...):

    # Test on models in pyro_api.testing
    for model in MODELS:
        f = MODELS[model]()
        model, model_args = f['model'], f.get('model_args', ())
        model(*model_args) 
        ... # further testing

Release files for pyro-api 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyro-api 0.1.2
File Size Uploaded
pyro-api-0.1.2.tar.gz 7.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyro-api 0.1.2
File Interpreter ABI Platform
pyro_api-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 19.3 kB

Release files / pyro-api-0.1.2.tar.gz

Download URL pyro-api-0.1.2.tar.gz
Size 7.3 kB
Tags Source
SHA-256 checksum
How to use checksums
a1b900d9580aa1c2fab3b123ab7ff33413744da7c5f440bd4aadc4d40d14d920
BLAKE2b-256 checksum
How to use checksums
25d7a0812f5c16b0d4464f80a64a44626c5fe200098070be0f32436dbb662775
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release files / pyro_api-0.1.2-py3-none-any.whl

Download URL pyro_api-0.1.2-py3-none-any.whl
Size 12.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
10e0e42e9e4401ce464dab79c870e50dfb4f413d326fa777f3582928ef9caf8f
BLAKE2b-256 checksum
How to use checksums
fc81957ae78e6398460a7230b0eb9b8f1cb954c5e913e868e48d89324c68cec7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3.post20200330 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page