Skip to main content

ZADU

A-to-Z Python library for evalUating Dimensionality reduction

PyPI Tests Documentation

ZADU evaluates how faithfully a dimensionality-reduction projection 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-projection 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))
projection = 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(projection)
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.3.tar.gz (106.6 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.3-py3-none-any.whl (109.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: zadu-0.5.3.tar.gz
  • Upload date:
  • Size: 106.6 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.3.tar.gz
Algorithm Hash digest
SHA256 7ad6418269880e31f4ee0a542a0c2f927541e2bf58ba8ee411d16b2a13236ec0
MD5 088e971ba86ad8289251644c88874cfd
BLAKE2b-256 3f5e9c83936eca746a1ed9b792bc75163f716309921f3dc16de10e3131bd465f

See more details on using hashes here.

Provenance

The following attestation bundles were made for zadu-0.5.3.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.3-py3-none-any.whl.

File metadata

  • Download URL: zadu-0.5.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 05d7f022d29f8210ccf210be740711bee68842ffa78985f2c4abd555d3c46243
MD5 859fe4e2be4205f0cf424db9cb6c5910
BLAKE2b-256 2ca7aa22c9aa34c1906abddfb89cd2e1261fa9018f510fa9ed65d8f8924e8258

See more details on using hashes here.

Provenance

The following attestation bundles were made for zadu-0.5.3-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

This release

0.5.3 This release

2 files

0.5.2

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