tarp


Nametarp JSON
Version 0.1.1 PyPI version JSON
download
home_page
SummaryStatistical coverage testing in python.
upload_time2023-11-21 20:34:34
maintainer
docs_urlNone
author
requires_python>=3.7
licenseMIT License Copyright (c) [2023] [Adam Coogan & Pablo Lemos] Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords bayesian coverage posterior statistics
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # tarp

[![Documentation Status](https://readthedocs.org/projects/tarp/badge/?version=latest)](https://tarp.readthedocs.io/en/latest/?badge=latest)
[![PyPI version](https://badge.fury.io/py/tarp.svg)](https://badge.fury.io/py/tarp)
[![Tests](https://github.com/Ciela-Institute/tarp/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/Ciela-Institute/tarp/actions)
[![Coverage](https://img.shields.io/codecov/c/github/Ciela-Institute/tarp)](https://app.codecov.io/gh/Ciela-Institute/tarp)

`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](https://arxiv.org/abs/2302.03026), which relies on
posterior samples.

<!-- An upcoming release will implement the highest posterior density region test (HPDR; see [Hermans, Delaunoy et al 2022](https://arxiv.org/abs/2110.06581) or [Cole et al 2022](https://arxiv.org/abs/2111.08030)), which requires a posterior density estimator. -->

## Installation

`pip install tarp`

## Contributing

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

To start, follow the installation instructions, replacing the last line with
```bash
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](https://github.com/Ciela-Institute/tarp/issues)
for bugs/missing features. Use pull requests for additions to the code. Write tests
that can be run by [`pytest`](https://docs.pytest.org/).

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "tarp",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "bayesian,coverage,posterior,statistics",
    "author": "",
    "author_email": "Adam Coogan <dr.adam.coogan@gmail.com>, Pablo Lemos <plemos91@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/76/6a/e00a37e58c1fd00865a6c8b11beff800b83b31ce201ac0dec78dc09a69ec/tarp-0.1.1.tar.gz",
    "platform": null,
    "description": "# tarp\n\n[![Documentation Status](https://readthedocs.org/projects/tarp/badge/?version=latest)](https://tarp.readthedocs.io/en/latest/?badge=latest)\n[![PyPI version](https://badge.fury.io/py/tarp.svg)](https://badge.fury.io/py/tarp)\n[![Tests](https://github.com/Ciela-Institute/tarp/actions/workflows/python-app.yml/badge.svg?branch=main)](https://github.com/Ciela-Institute/tarp/actions)\n[![Coverage](https://img.shields.io/codecov/c/github/Ciela-Institute/tarp)](https://app.codecov.io/gh/Ciela-Institute/tarp)\n\n`tarp` is a small python package for performing statistical coverage tests to assess\nthe quality of posterior estimators.\n<!-- `tarp` is framework-agnostic: it works with posterior estimators and samplers written in numpy, pytorch, jax. -->\n\n`tarp` currently implements the distance to random point (DRP) test introduced\nin [Lemos, Coogan et al 2023](https://arxiv.org/abs/2302.03026), which relies on\nposterior samples.\n\n<!-- An upcoming release will implement the highest posterior density region test (HPDR; see [Hermans, Delaunoy et al 2022](https://arxiv.org/abs/2110.06581) or [Cole et al 2022](https://arxiv.org/abs/2111.08030)), which requires a posterior density estimator. -->\n\n## Installation\n\n`pip install tarp`\n\n## Contributing\n\nPlease reach out to us if you're interested in contributing!\n\nTo start, follow the installation instructions, replacing the last line with\n```bash\npip install -e \".[dev]\"\n```\nThis creates an editable install and installs the dev dependencies for generating\ndocs, running tests and packaging for PyPI.\n\nPlease use `isort` and `black` to format your code. Open up [issues](https://github.com/Ciela-Institute/tarp/issues)\nfor bugs/missing features. Use pull requests for additions to the code. Write tests\nthat can be run by [`pytest`](https://docs.pytest.org/).\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) [2023] [Adam Coogan & Pablo Lemos]  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ",
    "summary": "Statistical coverage testing in python.",
    "version": "0.1.1",
    "project_urls": {
        "documentation": "https://tarp.readthedocs.io/en/latest/",
        "homepage": "https://github.com/Ciela-Institute/tarp",
        "repository": "https://github.com/Ciela-Institute/tarp"
    },
    "split_keywords": [
        "bayesian",
        "coverage",
        "posterior",
        "statistics"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "64808a99e2bf1966f64ecb6e7c6744b30164aa3eba08a59800e4663970cafad4",
                "md5": "1a862c348668b8e7f34940a4d1c59e42",
                "sha256": "f0f5a1a3bf90e11e4fb8dd5097b1d43faf23f91d6ef36ccdf445b7a2f96488a5"
            },
            "downloads": -1,
            "filename": "tarp-0.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1a862c348668b8e7f34940a4d1c59e42",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 5963,
            "upload_time": "2023-11-21T20:34:32",
            "upload_time_iso_8601": "2023-11-21T20:34:32.230159Z",
            "url": "https://files.pythonhosted.org/packages/64/80/8a99e2bf1966f64ecb6e7c6744b30164aa3eba08a59800e4663970cafad4/tarp-0.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "766ae00a37e58c1fd00865a6c8b11beff800b83b31ce201ac0dec78dc09a69ec",
                "md5": "22cd602db86388dcf724a759bcfd1c3b",
                "sha256": "eb7de4ecc26b6bf49cb9509231c84d84666d36ef46b1a718cc7b89d34db4c57d"
            },
            "downloads": -1,
            "filename": "tarp-0.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "22cd602db86388dcf724a759bcfd1c3b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 6706,
            "upload_time": "2023-11-21T20:34:34",
            "upload_time_iso_8601": "2023-11-21T20:34:34.823749Z",
            "url": "https://files.pythonhosted.org/packages/76/6a/e00a37e58c1fd00865a6c8b11beff800b83b31ce201ac0dec78dc09a69ec/tarp-0.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-21 20:34:34",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Ciela-Institute",
    "github_project": "tarp",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "tarp"
}
        
Elapsed time: 0.46438s