Skip to main content

Utilities for preparing Stan inputs and processing Stan outputs

Project description

StanIO

codecov Tests

A set of Python functions for data-wrangling in the formats used by the Stan probabalistic programming language.

It is primarily developed for use in cmdstanpy.

Features

  • Writing Python dictionaries to Stan-compatible JSON (with optional support for using ujson for faster serialization)
  • Basic reading of StanCSV files into numpy arrays
  • Parameter extraction from numpy arrays based on StanCSV headers
    • e.g., if you have a matrix[2,3] x in a Stan program, extracting x will give you a (num_draws, 2, 3) numpy array

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

stanio-0.5.1.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

stanio-0.5.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

Details for the file stanio-0.5.1.tar.gz.

File metadata

  • Download URL: stanio-0.5.1.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for stanio-0.5.1.tar.gz
Algorithm Hash digest
SHA256 348d52f947dec431e118f4b601c4c5296929b86401d4d4dd5aa9373b0d4ae4ac
MD5 a0acf3ee832576f3dc3ea534b9fefa46
BLAKE2b-256 2c5b6e376499c3f9d71e4154b031d059663598534dd038f421e8c643d61afec5

See more details on using hashes here.

File details

Details for the file stanio-0.5.1-py3-none-any.whl.

File metadata

  • Download URL: stanio-0.5.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for stanio-0.5.1-py3-none-any.whl
Algorithm Hash digest
SHA256 99ad590daa5834681245c2b651716ec2e06223853661ada21430c621521c849f
MD5 c8810e83b0f3322fdcca7370a256d986
BLAKE2b-256 568737a80e4d5bd453c33262d8fb618b6840fd98d24ed08e046a4a9b10177fa3

See more details on using hashes here.

Supported by

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