Skip to main content

Continuous parallel coordinates widget for GP / function distributions

Project description

gp-coords-widget

Continuous parallel coordinates widget for visualising distributions over functions — GP priors, posterior samples, ensemble forecasts.

Install

pip install "gp-coords-widget @ git+https://github.com/josephsmann/gp_widget.git"

Usage

import marimo as mo
from gp_coords_widget import ContinuousParallelCoords

widget = mo.ui.anywidget(ContinuousParallelCoords(
    x_values,   # list of floats — the shared input grid
    y_samples,  # list of lists — shape (n_samples, len(x_values))
))
widget

Interactions

  • Click in the plot → add a constraint at that (x, y)
  • Drag body → reposition the constraint (horizontal = x, vertical = y-shift)
  • Drag top/bottom handle → resize the y-range
  • Double-click → remove the constraint

widget.filtered_indices — indices of samples consistent with all constraints.

Demos

Notebook Description
gp_parallel_coords_demo.py GP prior samples with RBF kernel
cherry_blossom_gp.py McElreath's cherry blossom data (Statistical Rethinking ch. 14)

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

gp_coords_widget-0.1.0.tar.gz (11.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gp_coords_widget-0.1.0-py3-none-any.whl (6.8 kB view details)

Uploaded Python 3

File details

Details for the file gp_coords_widget-0.1.0.tar.gz.

File metadata

  • Download URL: gp_coords_widget-0.1.0.tar.gz
  • Upload date:
  • Size: 11.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gp_coords_widget-0.1.0.tar.gz
Algorithm Hash digest
SHA256 972f0034afc758171614b08c972e7eff76b389241fb0dbcad59b89c027a6e8ed
MD5 24032cd353569882f6bdc7cdee692e65
BLAKE2b-256 94aac810f3c600af0c2939a7e371f22884367f426d4d6d35c1192b237cd33c9a

See more details on using hashes here.

File details

Details for the file gp_coords_widget-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: gp_coords_widget-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.16 {"installer":{"name":"uv","version":"0.9.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for gp_coords_widget-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c9be36d24e074cd02de34306abb7e8b029739d8983f3b9c1b1818792021a0c4e
MD5 90ef9c3d4ac875c02e195318eefa35b0
BLAKE2b-256 9fbb65165e0b6896e95c144f9a24fee89a14e4264f2a337f5feddece9716f4b2

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page