Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ipysensitivityprofiler-0.0.1.tar.gz (12.9 kB view details)

Uploaded Source

Built Distribution

ipysensitivityprofiler-0.0.1-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file ipysensitivityprofiler-0.0.1.tar.gz.

File metadata

File hashes

Hashes for ipysensitivityprofiler-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f1c2795e283fa010495d42a8fb6b63ff43136582bb08b01dfdfe0754d41bb999
MD5 68b4fa8eeb67b788f046af4dc1a955e4
BLAKE2b-256 d82f870440556ce31413e44da5b9ea4863335d4eb9e04da772ac3847b4c25b39

See more details on using hashes here.

File details

Details for the file ipysensitivityprofiler-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for ipysensitivityprofiler-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bd43132f4aba6b1afd4a9285834911bf4c252ae3dfd65f853934987075f2831b
MD5 8c1afbbd846c78e8cbc890970595fd72
BLAKE2b-256 e3591a93999edfba1d5f69e7638bccb20716f7ca5d0bdb08dc7c3e34d92f9b48

See more details on using hashes here.

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