Skip to main content

Official Implementation of the paper: "EmbedOR: Provable Cluster-Preserving Visualizations with Curvature-Based Stochastic Neighbor Embeddings"

Getting Started

Installation

Create and activate a virtual environment:

python3 -m venv env
source env/bin/activate

Upgrade pip and install the published package from PyPI:

pip install --upgrade pip
pip install embedor

requirements.txt tracks the third-party packages imported from src/, including the optional biological-data and visualization helpers in src/data/data.py and src/vis.py.

Quick Start

The repository currently exposes a Python API rather than a checked-in CLI script. A minimal end-to-end example is:

from src.data.data import moons
from src.embedor import EmbedOR
from src.plotting import plot_data_2D

dataset = moons(n_points=1000, noise=0.05)
X = dataset["data"]
labels = dataset["cluster"]

embedding = EmbedOR(
	nng_params={"mode": "nbrs", "n_neighbors": 15},
	edge_weight="orc",
	layout="torch",
	seed=42,
).fit_transform(X)

plot_data_2D(embedding, color=labels, title="EmbedOR embedding")

Project Layout

  • src/embedor.py contains the main EmbedOR estimator.
  • src/data/data.py contains synthetic data generators and dataset loaders.
  • src/plotting.py contains lightweight plotting helpers for embeddings and graphs.
  • src/vis.py contains additional visualization and RNA-velocity utilities.
  • src/utils/ contains graph construction, curvature, layout, and timing helpers.

If you want a scriptable workflow, add a small runner that imports EmbedOR from src.embedor and passes either a NumPy array or a precomputed adjacency matrix into fit/fit_transform.

Metadata

Release files for embedor 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for embedor 0.1.1
File Size Uploaded Provenance Actions
embedor-0.1.1.tar.gz 57.4 kB Without provenance Details for embedor-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for embedor 0.1.1
File Interpreter ABI Platform Actions
embedor-0.1.1-py3-none-any.whl Python 3 none any Details for embedor-0.1.1-py3-none-any.whl

Total release size: 117.1 kB

Release files / embedor-0.1.1.tar.gz

Download URL embedor-0.1.1.tar.gz
Size 57.4 kB
Tags Source
SHA-256 checksum
How to use checksums
8778cfb7ca332bdd7a2452cf03c353e4f10c32b41e82abb973590742a2b28b98
BLAKE2b-256 checksum
How to use checksums
6c6d3c623030a9ab17fb54374776511777353ab023d42d87c85f9c6e64235530
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Release files / embedor-0.1.1-py3-none-any.whl

Download URL embedor-0.1.1-py3-none-any.whl
Size 59.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ae9f8ffe3e280b9459ac38e3537104a22af79eccde7375fe5991472fb9a91a2e
BLAKE2b-256 checksum
How to use checksums
74699780121664fc61ae98469dfce1bf6d5889eee1bb53af7de1453d5a0eef9c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.15

Security for embedor 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page