Skip to main content

Helper library for working with Stan models in Python

Project description

build status coverage

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

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.2.tar.gz (24.7 kB view details)

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for stanity-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ca0b1da8cd50a4a2db4486f74a57c5e11409d231335f57473c52d7450967a515
MD5 739ad11156339620ff5fd716f9647932
BLAKE2b-256 9bf6f8caba59c49ab115a2c5cdaaeea601c07e3a9e9d01d4e3eda7d8ceaf8bed

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