A lightweight JAX-based library offering a collection of distance and similarity measures for data analysis. Designed for scalability and accelerator support, it includes high-performance, parallelizable implementations of a wide range of commonly used metrics.
Installation
pip install -e .
Implemented Metrics
This library is still in development and more metrics will be added over time. The following metrics are currently implemented.
Distance Measures
- Minkowski Distance
- Euclidean Distance
- Cosine Distance
- Mahalanobis Distance
- Dynamic Time Warping
- Discrete Frechet Distance
- Sinkhorn Distance
Statistical Measures
- Relative Entropy (Kullback-Leibler Divergence)
- Frechet Inception Distance
- Maximum Mean Discrepancy
- Wassersteim Distance
Examples
To test, there are two examples: Either compare batches of particles
python examples/example_particle_data.py
or batches of time series data
python examples/example_time_series_data.py
Citation
If you use this libarary in your work, please consider citing it as follows:
@software{metrx2024github,
author = {Pompetzki, Kay and Gruner, Theo and Al-Hafez, Firas, and Peters, Jan},
title = {MetrX: A JAX-Based Collection of Similarity and Statistical Measures for Accelerated Data Analysis.},
url = {https://github.com/pompetzki/metrx},
year = {2024},
}
Metadata
Release files for metrx 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| metrx-0.1.0.tar.gz | 17.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| metrx-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.3 kB
Release files / metrx-0.1.0.tar.gz
| Download URL | metrx-0.1.0.tar.gz |
|---|---|
| Size | 17.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
80d736846bd7a26a69bc259078cb65143c168d9329236856b2a848bd98016468
|
|
BLAKE2b-256 checksum How to use checksums |
492eaa395f9d780a1f84920691dc260e687ad163435cd92abef79c1bfd2ee1a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.16
|
Release files / metrx-0.1.0-py3-none-any.whl
| Download URL | metrx-0.1.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4ee6b5af9f376b593b7593a533c7979d10fd32b10d48a58d453aea78b3b53f39
|
|
BLAKE2b-256 checksum How to use checksums |
48920199b81121aac9eded954d5be65d86d90900b6a7969af236549acd5e0abd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.10.16
|