"A library containing a collection of distance and similarity measures to compare time series data."
Project description
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},
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file metrx-0.1.0.tar.gz.
File metadata
- Download URL: metrx-0.1.0.tar.gz
- Upload date:
- Size: 17.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
80d736846bd7a26a69bc259078cb65143c168d9329236856b2a848bd98016468
|
|
| MD5 |
2798029040f1b0f121f9a10c18380d88
|
|
| BLAKE2b-256 |
492eaa395f9d780a1f84920691dc260e687ad163435cd92abef79c1bfd2ee1a5
|
File details
Details for the file metrx-0.1.0-py3-none-any.whl.
File metadata
- Download URL: metrx-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.16
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4ee6b5af9f376b593b7593a533c7979d10fd32b10d48a58d453aea78b3b53f39
|
|
| MD5 |
12bb75dd1465a3a183b2ab7069361ea5
|
|
| BLAKE2b-256 |
48920199b81121aac9eded954d5be65d86d90900b6a7969af236549acd5e0abd
|