Skip to main content

Uncertainty wrapper using estimate Jacobian

Project description

Use @unc_wrapper decorator to wrap any Python callable to append the covariance and Jacobian matrices to the return values. See documentation and tests for usage and examples.

Installation

Use pip install uncertainty_wrapper to install from PyPI or download a source distribution, extract and use python setup.py install.

Requirements

History

Releases are named after geological eons, periods and epochs.

v0.3 Proterozoic Eon

  • new unc_wrapper_args() allows selection of independent variables that the partial derivatives are with respect to and also grouping those arguments together so that in the original function they can stay unpacked.

  • return values are grouped correctly so that they can remain unpacked in original function. These allow Uncertainty Wrapper to be used with Pint’s wrapper

  • covariance now specified as dimensionaless fraction of square of arguments

  • more complex tests: IV curve and solar position (requires NREL’s solpos)

v0.2.1 Eoarchean Era

  • update documentation

v0.2 Archean Eon

  • Fix nargs and nf order mixup in Jacobian

  • add more complex test

  • fix tile cov by nobs

  • move partial derivative to subfunction

  • try threading, but same speed, and would only work with NumPy anyway

v0.1 Hadean Eon

  • adds covariance to output

  • allows __covariance__ to be passed as input

  • uses estimate Jacobian based on central finite difference method

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

uncertainty_wrapper-0.3.zip (21.0 kB view hashes)

Uploaded Source

Built Distribution

uncertainty_wrapper-0.3-py2-none-any.whl (19.2 kB view hashes)

Uploaded Python 2

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