Skip to main content

ZADU

A-to-Z Python library for evalUating Dimensionality reduction

PyPI Tests Documentation

ZADU evaluates how faithfully a dimensionality-reduction embedding preserves its original data. It provides 22 local, cluster-level, global, and gap-based distortion measures through one consistent Python interface, with exact shared execution, bounded-memory strategies, repeated-embedding evaluation, and optional MLX and PyTorch backends.

Documentation · Measure reference · Performance report · ZADU paper

Installation

python -m pip install zadu

Visualization is optional:

python -m pip install "zadu[vis]"

See the installation guide for optional MLX and PyTorch backends.

Quick start

import numpy as np
from zadu import ZADU

rng = np.random.default_rng(0)
original = rng.normal(size=(200, 16))
embedding = original[:, :2] + 0.05 * rng.normal(size=(200, 2))

specs = [
    {"id": "tnc", "params": {"k": 20}},
    {"id": "mrre", "params": {"k": 20}},
]

scores = ZADU(specs, original).measure(embedding)
print(scores)

ZADU's execution DAG shares compatible exact distances, neighbors, ranks, densities, and pair reductions across measures. Scientific scores remain separate from backend, timing, and memory diagnostics in last_run_info.

Read the quickstart, choose measures, or browse the complete measure reference.

Contributing

To propose a distortion measure, provide its name, paper, and an optional reference implementation through the metric proposal form. You do not need to learn ZADU's internals or prepare repository files. See CONTRIBUTING.md for development and correctness requirements.

Citation

@INPROCEEDINGS{jeon23vis,
  author={Jeon, Hyeon and Cho, Aeri and Jang, Jinhwa and Lee, Soohyun and Hyun, Jake and Ko, Hyung-Kwon and Jo, Jaemin and Seo, Jinwook},
  booktitle={2023 IEEE Visualization and Visual Analytics (VIS)},
  title={ZADU: A Python Library for Evaluating the Reliability of Dimensionality Reduction Embeddings},
  year={2023},
  pages={196--200},
  doi={10.1109/VIS54172.2023.00048}
}

Each metric's original literature and later additions are credited in the measure reference.

Download files

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

Source Distribution

zadu-0.5.2.tar.gz (106.5 kB view details)

Uploaded Source

Built Distribution

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

zadu-0.5.2-py3-none-any.whl (109.9 kB view details)

Uploaded Python 3

File details

Details for the file zadu-0.5.2.tar.gz.

File metadata

  • Download URL: zadu-0.5.2.tar.gz
  • Upload date:
  • Size: 106.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for zadu-0.5.2.tar.gz
Algorithm Hash digest
SHA256 9b83c81568460ff69e23c24da0c9c2a15e971b5542429c0fa1bf446be76f41aa
MD5 605c1fa7c34445229b2860e195f21576
BLAKE2b-256 dbbc901359d3a7959a59e45cb6ba9276ccbab1b1618561a23864cb7356b10d6d

See more details on using hashes here.

Provenance

The following attestation bundles were made for zadu-0.5.2.tar.gz:

Publisher: publish-pypi.yml on hj-n/zadu

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

File details

Details for the file zadu-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: zadu-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 109.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for zadu-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b2f17e36c3b608edd94ed6522fb835fff7b45302f1b9af0d4cef0a31e5059360
MD5 d0a594b29a0ce2a016d2081dc9ba6404
BLAKE2b-256 b0d6a1598b9595ae66ab07bc93aadeac55fc364d379bd93eab969d4568298cc9

See more details on using hashes here.

Provenance

The following attestation bundles were made for zadu-0.5.2-py3-none-any.whl:

Publisher: publish-pypi.yml on hj-n/zadu

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

Release history Release notifications | RSS feed

0.5.3

2 files

This release

0.5.2 This release

2 files

0.5.1

2 files

0.5.0

2 files

0.4.2

2 files

0.4.1

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.1

2 files

0.1.0

2 files

0.0.8

2 files

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.2

2 files

0.0.1

2 files

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