https://github.com/hammerlab/stanity
python convenience functions for working with Stan models (via pystan)
https://github.com/hammerlab/stanity
Last synced: about 1 year ago
JSON representation
python convenience functions for working with Stan models (via pystan)
- Host: GitHub
- URL: https://github.com/hammerlab/stanity
- Owner: hammerlab
- License: apache-2.0
- Created: 2016-06-03T17:41:53.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-03T16:02:01.000Z (over 8 years ago)
- Last Synced: 2025-04-15T10:05:33.889Z (about 1 year ago)
- Language: Python
- Size: 60.5 KB
- Stars: 13
- Watchers: 10
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
.. image:: https://travis-ci.org/hammerlab/stanity.svg
:target: https://travis-ci.org/hammerlab/stanity
:alt: build status
.. image:: https://coveralls.io/repos/github/hammerlab/stanity/badge.svg?branch=master
:target: https://coveralls.io/github/hammerlab/stanity
:alt: coverage
.. image:: https://badge.fury.io/py/stanity.svg
:target: https://badge.fury.io/py/stanity
stanity
=========
python convenience functions for working with Stan models (via pystan)
Functionality:
stanity.fit
thin wrapper around ``pystan.stan`` that caches compiled models
stanity.psisloo
thin wrapper around ``psisloo`` (implemented in https://github.com/avehtari/PSIS/blob/master/py/psis.py)
stanity.loo_compare
compare model fit using PSIS-LOO, similar to methods implemented in the R package loo
Installation
-------------
Install from pip:
::
pip install stanity
::
Or, from a git checkout, run:
::
pip install .
To run the tests:
::
nosetests