Explore mode!

Open in Colab  run this example as a notebook — or grab the .ipynb (also linked at the bottom of the page)

Explore mode is an experimental feature that allows you to (not surprisingly) explore the points in your dataset. When you hover over the points, a label will pop up that will help you identify the datapoint. You can customize the labels by passing a list of labels to the label(s) kwarg. Alternatively, if you don’t pass a list of labels, the labels will be the index of the datapoint, along with the PCA coordinate.

explore
/home/docs/checkouts/readthedocs.org/user_builds/hypertools/checkouts/latest/hypertools/plot/backend.py:1353: UserWarning: Failed to switch to any interactive backend (TkAgg, QtAgg, Qt5Agg, Qt4Agg, GTK4Agg, GTK3Agg, WXAgg). Falling back to 'Agg'.
  warnings.warn(BACKEND_WARNING)
/home/docs/checkouts/readthedocs.org/user_builds/hypertools/checkouts/latest/examples/explore.py:27: UserWarning: explore=True shows labels on hover, which needs an interactive matplotlib backend; the current backend ('agg') is non-interactive, so the figure will be drawn as a static plot without hover labels. Run in an interactive session (or switch backends, e.g. matplotlib.use('QtAgg')) to use explore mode.
  hyp.plot(data, fmt='.', explore=True)

# sphinx_gallery_thumbnail_path = '_static/thumbnails/sphx_glr_explore_thumb.png'

# Code source: Andrew Heusser
# License: MIT

# import
import hypertools as hyp

# load example data
data = hyp.load('weights_sample')

# plot
hyp.plot(data, fmt='.', explore=True)

Total running time of the script: (0 minutes 0.069 seconds)

Gallery generated by Sphinx-Gallery