Jupyter Widgets for visualizing local sensitivity profiles of functions.
Project description
ipysensitivityprofiler
Jupyter Widgets for visualizing local sensitivities of vectorized functions with signature y = f(x)
where x,y
are arrays.
Installation
pip install ipysensitivityprofiler
Example
Example notebooks are available for download on GitHub and hosted on binder.
Documentation
Documentation is available here (generated using sphinx
)
Usage
import numpy as np
import ipysensitivityprofiler as isp
def quadratic1(x):
"""y = x1**2 + x2**2 + x1*x2"""
return (np.prod(x, axis=1) + np.power(x, 2).sum(axis=1))
def quadratic2(x):
"""y = 10 + x1**2 + x2**2 - 2 * x1*x2"""
return (10 - 2 * np.prod(x, axis=1) + np.power(x, 2).sum(axis=1))
isp.profiler(
models=[quadratic1, quadratic2],
xmin=[0, 0],
xmax=[2, 1],
ymin=[0],
ymax=[20],
x0=[1.5, 0.75],
resolution=10_000,
xlabels=["x1", "x2"],
ylabels=["y"],
)
Main Features
- Visualize multiple outputs against multiple inputs interactively
- Overlay more than one model at once
- Download pictures on individual plots (by clicking on red dot)
License
Distributed under the terms of the MIT License.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ipysensitivityprofiler-0.0.1.tar.gz
.
File metadata
- Download URL: ipysensitivityprofiler-0.0.1.tar.gz
- Upload date:
- Size: 12.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1c2795e283fa010495d42a8fb6b63ff43136582bb08b01dfdfe0754d41bb999 |
|
MD5 | 68b4fa8eeb67b788f046af4dc1a955e4 |
|
BLAKE2b-256 | d82f870440556ce31413e44da5b9ea4863335d4eb9e04da772ac3847b4c25b39 |
File details
Details for the file ipysensitivityprofiler-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: ipysensitivityprofiler-0.0.1-py3-none-any.whl
- Upload date:
- Size: 12.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd43132f4aba6b1afd4a9285834911bf4c252ae3dfd65f853934987075f2831b |
|
MD5 | 8c1afbbd846c78e8cbc890970595fd72 |
|
BLAKE2b-256 | e3591a93999edfba1d5f69e7638bccb20716f7ca5d0bdb08dc7c3e34d92f9b48 |