Skip to main content

An official JAX metrics library.

Project description

metrax

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

Run the tests:

pytest src/metrax

Develop the docs locally:

pip install -r ./docs/requirements.txt
sphinx-build ./docs /tmp/metrax_docs
python -m http.server --directory /tmp/metrax_docs

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.1.2.tar.gz (14.0 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.1.2-py3-none-any.whl (23.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: google_metrax-0.1.2.tar.gz
  • Upload date:
  • Size: 14.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for google_metrax-0.1.2.tar.gz
Algorithm Hash digest
SHA256 ff98e79183d58bc6864f51e2fde126106bd30a3db271d71bf8c6f4fa32c7ad43
MD5 a7dd5233f339e16970802c126e2910b6
BLAKE2b-256 6a0bce7da0e4c8a0ea61e4566d45ada3363c63f2f4bb02d32b343f35f8c5033b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: google_metrax-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 23.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for google_metrax-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 4e304ad8146f3cfcd62d91126be6565b2474b16fd3be176de49607f842e04e75
MD5 bb06d58292ca271bed2d0d8b9915f605
BLAKE2b-256 fd48424282a6dd0ed41b54d95d04bb27d805c1628a50bdeeb8afe33a67adf0b2

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