Utilities for uncertainty-aware regression and symbolic function helpers.
Python version: 3.10+
📦 PyPI package name:
uncertainty-tools
🧩 Python import name:unc_tools
pip install uncertainty-toolsuv pip install uncertainty-toolsfrom unc_tools import FunctionBase1D, Poly, UncRegression
# Symbolic expression with coefficients
expr = FunctionBase1D("a*x + b")
# Polynomial helper
poly = Poly(2)
# Regression with uncertainty propagation
reg = UncRegression(
x=[0, 1, 2],
y=[0, 1.1, 1.9],
func=expr,
)
pred = reg.predict([0.5, 1.5])Importing unc_tools.patches monkey-patches:
-
matplotlib.axes.Axes.scatter -
matplotlib.axes.Axes.plot
and adds uncertainty-aware helpers for SymPy substitution and lambdify.
import unc_tools.patches # noqa: F401UncRegression— regression with uncertainty propagationFunctionBase1D,Poly,Hyper— symbolic helpers for 1D expressionsDataError,ExpressionError,InitialGuessError,ModelTypeError— custom exceptions
The public API may change between minor versions.
This project is licensed under the MIT License.