Skip to content

mikofski/UncertaintyWrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UncertaintyWrapper

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.

  • 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)
  • update documentation
  • 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
  • adds covariance to output
  • allows __covariance__ to be passed as input
  • uses estimate Jacobian based on central finite difference method

About

Fast Uncertainty wrapper for any Python callable.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 74.0%
  • Makefile 13.6%
  • Batchfile 12.4%