Skip to main content

Statistical coverage testing in python.

Project description

tarp

Documentation Status PyPI version Tests Coverage

tarp is a small python package for performing statistical coverage tests to assess the quality of posterior estimators. tarp is framework-agnostic: it works with posterior estimators and samplers written in numpy, pytorch, jax.

tarp currently implements the distance to random point (DRP) test introduced in Lemos, Coogan et al 2023, which relies on posterior samples.

Installation

Soon you'll be able to install from PyPI with pip install tarp. For now,

git clone git@github.com:Ciela-Institute/tarp.git
cd tarp
pip install .

will install the tarp package.

Contributing

Please reach out to us if you're interested in contributing!

To start, follow the installation instructions, replacing the last line with

pip install -e ".[dev]"

This creates an editable install and installs the dev dependencies for generating docs, running tests and packaging for PyPI.

Please use isort and black to format your code. Open up issues for bugs/missing features. Use pull requests for additions to the code. Write tests that can be run by pytest.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tarp-0.0.1a0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

tarp-0.0.1a0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file tarp-0.0.1a0.tar.gz.

File metadata

  • Download URL: tarp-0.0.1a0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.3

File hashes

Hashes for tarp-0.0.1a0.tar.gz
Algorithm Hash digest
SHA256 9654fbbb5b24c47f8af60a6424f3689d776e1ea4191c108e94c38172e5eb4901
MD5 6129e0684845656524cdb7b54d391fbe
BLAKE2b-256 ba4b569c0bca6d589cfc5825d255daa3d971292a5196a2ede1e289063d71d4cc

See more details on using hashes here.

File details

Details for the file tarp-0.0.1a0-py3-none-any.whl.

File metadata

  • Download URL: tarp-0.0.1a0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.3

File hashes

Hashes for tarp-0.0.1a0-py3-none-any.whl
Algorithm Hash digest
SHA256 1834b80c81216f2190c36fa1e504218bd5eaa04f7877fcc81ca74237eb05b3ae
MD5 108d7fab007c28660c1d1d89cb769aaf
BLAKE2b-256 2f4d762821219473cb27d8bc39d07be272165bcedd46374bc3c077eaf20ddef7

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page