Skip to main content

Embedding Atlas

A Python package that provides a command-line tool to visualize a dataset with embeddings. It also includes a Python notebook (e.g., Jupyter) widget and a Streamlit widget.

Installation

pip install embedding-atlas

and then launch the command line tool:

embedding-atlas [OPTIONS] INPUTS...

Loading Data

You can load your data in two ways: locally or from Hugging Face.

Loading Local Data

To get started with your own data, run:

embedding-atlas path_to_dataset.parquet

Loading Hugging Face Data

You can instead load datasets from Hugging Face:

embedding-atlas huggingface_org/dataset_name

Visualizing Embedding Projections

To visualize embedding projections, pre-compute the X and Y coordinates, and specify the column names with --x and --y, such as:

embedding-atlas path_to_dataset.parquet --x projection_x --y projection_y

You may use the SentenceTransformers package to compute high-dimensional embeddings from text data, and then use the UMAP package to compute 2D projections.

Using Pre-computed Vectors

If you already have pre-computed embedding vectors (but not the 2D projections), you can specify the column containing the vectors with --vector:

embedding-atlas path_to_dataset.parquet --vector embedding_vectors

This will apply UMAP dimensionality reduction to your pre-existing vectors without recomputing embeddings. The vectors should be stored as lists or numpy arrays in your dataset.

You may also specify a column for pre-computed nearest neighbors:

embedding-atlas path_to_dataset.parquet --x projection_x --y projection_y --neighbors neighbors

The neighbors column should have values in the following format: {"ids": [id1, id2, ...], "distances": [d1, d2, ...]}. If this column is specified, you'll be able to see nearest neighbors for a selected point in the tool.

Local Development

Launch Embedding Atlas with a wine reviews dataset with ./start.sh and the MNIST dataset with ./start_image.sh.

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

embedding_atlas-0.24.0-py3-none-any.whl (23.9 MB view details)

Uploaded Python 3

File details

Details for the file embedding_atlas-0.24.0-py3-none-any.whl.

File metadata

File hashes

Hashes for embedding_atlas-0.24.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0a0f226ef79d731ab651bf7b3f4b35234f48a6878734e51e37801b5884c0410d
MD5 c737c17c7648b0e435b4553c47a9a690
BLAKE2b-256 f22f2fe308abcd39fe21cc55c28304da431abbe7e750ff371fed3abc5dec2030

See more details on using hashes here.

Provenance

The following attestation bundles were made for embedding_atlas-0.24.0-py3-none-any.whl:

Publisher: ci.yml on apple/embedding-atlas

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.24.0 This release

1 file

0.22.0

1 file

0.21.0

1 file

0.20.0

1 file

0.19.1

1 file

0.19.0

1 file

0.18.1

1 file

0.18.0

1 file

0.17.0

1 file

0.16.1

1 file

0.16.0

1 file

0.15.0

1 file

0.14.0

1 file

0.13.0

1 file

0.12.0

1 file

0.11.0

1 file

0.10.0

1 file

0.9.0

1 file

0.8.0

1 file

0.7.1

1 file

0.7.0

1 file

Supported by

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