Skip to main content

A centralized JAX metrics library.

Project description

metrax

CI status Documentation Status pypi Open In Colab

metrax is a library with standard eval metrics implementations in JAX.

Vision

While the JAX ecosystem is powerful, it currently lacks a core evaluation metrics library. This absence presents challenges for users transitioning from other frameworks like TensorFlow or PyTorch, which offer built-in metrics reporting capabilities.

To address these challenges, we introduced metrax, a standalone JAX model evaluation library that:

  • Provides essential predefined metrics: Includes metrics commonly used to evaluate various machine learning models (classification, regression, recommendation, and language modeling), with the flexibility to add more in the future.
  • Leverages existing library as a foundation: Builds upon the robust CLU library, ensuring compatibility and consistency in distributed and scaled training environments.
  • Is developed on GitHub first and is used by several Google core products.

Please refer to the readthedocs page of the library for more information.

Installation

Install the package by installing the PyPi release.

pip install google-metrax

Development

Install the development dependencies:

pip install ".[dev]"

Run the tests:

pytest src/metrax

Develop the docs locally:

pip install ".[docs]"
sphinx-build ./docs /tmp/metrax_docs
python -m http.server --directory /tmp/metrax_docs

Citing Metrax

To cite Metrax please use the citation:

@software{metrax2024,
  title={Metrax},
  author={Jiwon Shin, Jeff Carpenter, et al.},
  year={2024},
  howpublished={\url{https://github.com/google/metrax}},
}

Project details


Download files

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

Source Distribution

google_metrax-0.2.0.tar.gz (32.5 kB view details)

Uploaded Source

Built Distribution

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

google_metrax-0.2.0-py3-none-any.whl (47.0 kB view details)

Uploaded Python 3

File details

Details for the file google_metrax-0.2.0.tar.gz.

File metadata

  • Download URL: google_metrax-0.2.0.tar.gz
  • Upload date:
  • Size: 32.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for google_metrax-0.2.0.tar.gz
Algorithm Hash digest
SHA256 554b8c55da2b60462ef6017b141ff9ee041891e5f9f6dbe831d83f1851f8d6af
MD5 3c90ea22893d614c54f4c4c8b7437509
BLAKE2b-256 a1e631db6c5075f2656497e037f991b7d67b6adfb60c7cd103e3681a1c8d752f

See more details on using hashes here.

File details

Details for the file google_metrax-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: google_metrax-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 47.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for google_metrax-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d739528ec9d6ff62e71f5e5423fb35afdfb1082bce4db000c277e76c703c3ae3
MD5 498212067d7f838b963bd4d7454d02ec
BLAKE2b-256 12312f7f12388b128ad656161b25a5f46ba3b783e1e9b54a525eb99790a2e93f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page