Skip to main content

Helper library for working with Stan models in Python

Project description

.. 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

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

stanity-0.1.4.tar.gz (25.9 kB view details)

Uploaded Source

File details

Details for the file stanity-0.1.4.tar.gz.

File metadata

  • Download URL: stanity-0.1.4.tar.gz
  • Upload date:
  • Size: 25.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for stanity-0.1.4.tar.gz
Algorithm Hash digest
SHA256 3b62327518e85587ddbae605c1f5fe6280caf6337ae84fe16958ab9265719028
MD5 dcbc46ee39bdc121c1102b1944b17d70
BLAKE2b-256 5d8469fa2281acbbb4e44fbbdc9e0198803121dda9f3c1da5f054ead8000a809

See more details on using hashes here.

Supported by

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