Skip to main content

A grammar of model analysis

Project description

py_grama

DOI PyPI version Documentation Status Build Status codecov CodeFactor

Implementation of a grammar of model analysis (grama). See the documentation for more info.

Overview

Grama is a grammar of model analysis---a Python package that supports building and analyzing models with quantified uncertainties. This language is heavily inspired by the Tidyverse. Grama provides convenient syntax for building a model (with functions and distributions), generating data, and visualizing results. The purpose of this language is to support scientists and engineers learning to handle uncertainty, and to improve documentation + reproducibility of results.

Uncertainty Quantification (UQ) is the science of analyzing uncertainty in scientific problems and using those results to inform decisions. UQ has important applications to building safety-critical engineering systems, and to making high-consequence choices based on scientific models. However, UQ is generally not taught at the undergraduate level: Many engineers leave their undergraduate training with a purely deterministic view of their discipline, which can lead to probabilistic design errors that negatively impact safety. To that end, Grama is designed to facilitate rapid model analysis, communication of results, and the teaching of concepts, all with quantified uncertainties. Intended users of Grama are scientists and engineers at the undergraduate level and upward, seeking to analyze computationally-lightweight models.

Installation

Quick install:

$ pip install py-grama

For a manual install clone this repo, change directories and run the following to install dependencies. (Note: I recommend Anaconda as a Python distribution; it takes care of most of the dependencies.)

$ git clone git@github.com:zdelrosario/py_grama.git
$ cd py_grama/
$ pip install -r requirements.txt
$ pip install .

Run the following to check your install:

$ python
> import grama

Quick Tour

py_grama has tools for both building and analyzing models. For a quick look at functionality, see the following notebooks:

Tutorials

The tutorials page has educational materials for learning to work with py_grama.

Support and Contributing

If you are seeking support or want to contribute, please see Contributing.

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

py_grama-0.1.4.tar.gz (630.0 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: py_grama-0.1.4.tar.gz
  • Upload date:
  • Size: 630.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for py_grama-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2bbf95d2ee4ae4602ab91112da6712953027a38de65bd4247eef7c0b0c0afb66
MD5 5b4c7924fb05959a43ac4b4cbd367cbf
BLAKE2b-256 98a0d40b9cc4d159eee5a9c9a67d34a0cb6e99ac52f019cc8fd408f444f70c27

See more details on using hashes here.

Provenance

Supported by

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