Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

metriclab

metriclab provides lightweight result containers and utility helpers for evaluating machine-learning predictions.

The library focuses on immutable result objects that expose a consistent API for comparing metric values, exporting them as dictionaries, and formatting them for display.

Quickstart

>>> from metriclab.results import AccuracyResult, Result
>>> accuracy = AccuracyResult(num_correct_predictions=7, num_predictions=10)
>>> accuracy.accuracy
0.7
>>> accuracy.to_dict(prefix="val_")
{'val_accuracy': 0.7, 'val_num_correct_predictions': 7, 'val_num_predictions': 10}
>>> Result({"loss": 0.2, "accuracy": 0.7}).to_display()
"{'loss': 0.2, 'accuracy': 0.7}"

Metadata

Release files for metriclab 0.0.1a1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for metriclab 0.0.1a1
File Size Uploaded
metriclab-0.0.1a1.tar.gz 23.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for metriclab 0.0.1a1
File Interpreter ABI Platform
metriclab-0.0.1a1-py3-none-any.whl Python 3 none any Details

Total release size: 62.5 kB

Release files / metriclab-0.0.1a1.tar.gz

Download URL metriclab-0.0.1a1.tar.gz
Size 23.8 kB
Tags Source
SHA-256 checksum
How to use checksums
df3ecc7a67ce4718016cb171bbe04c6a9bf783e0d5e5a2392324345f6743dc58
BLAKE2b-256 checksum
How to use checksums
76ee9300fb5a16a8904cb0d9fc64741eda3cd70f4d55ebddf998575803cffe2b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / metriclab-0.0.1a1-py3-none-any.whl

Download URL metriclab-0.0.1a1-py3-none-any.whl
Size 38.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
498ca303dcee30f5844bc2f826b091cea4c3b392022060eb8c1df0af59cd4d53
BLAKE2b-256 checksum
How to use checksums
9e244b4a1b870699f363c40393c1390d24008449a5e3635b1fb7f9017c4f5b52
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.16 {"installer":{"name":"uv","version":"0.11.16","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

0.0.1a1 This release

2 release 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