Skip to main content

mtrick: Metrics Tracker

A local simple ML experiment tracker with zero configurations required.

Best used with https://pypi.org/project/xscope/ visualizer

Installation

uv add mtrick

or

pip install mtrick

If you want the latest version

uv add git+https://github.com/AvikArefin/mtrick.git

or

pip install git+https://github.com/AvikArefin/mtrick.git

Usage

Initialize tracker:

from mtrick import Tracker
t = Tracker("exp_name")

Scalar metrics (epoch-based curves):

t.log({"loss/train": 0.1, "loss/val": 0.2, "accuracy": 0.95}, epoch=1)

2D Spatial Points & Trajectories:

t.log_2d(
    data={
        "data/true": [[1.0, 2.0], [2.0, 3.0]],
        "data/pred": [[1.1, 1.9], [2.1, 3.1]],
    },
    epoch=1
)

Matrices (Confusion Matrix):

t.log_matrix(
    matrix=[[9, 1], [2, 8]],
    labels=["Cat", "Dog"],
    step=1
)

Changelog

See CHANGELOG.md

Metadata

Release files for mtrick 0.6.1

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

Source distribution (sdist)

Source distribution for mtrick 0.6.1
File Size Uploaded
mtrick-0.6.1.tar.gz 3.0 kB Details

Built distribution (wheel)

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

Total release size: 6.9 kB

Release files / mtrick-0.6.1.tar.gz

Download URL mtrick-0.6.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
6b70d0fef58ba7015c72f943b37c5aa9a1a4e1cad9bee63296d919d8f39f8e3f
BLAKE2b-256 checksum
How to use checksums
9a0676bc0b451368d63961572e038f7c5e63b7e9b4fa615972588793d518977d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / mtrick-0.6.1-py3-none-any.whl

Download URL mtrick-0.6.1-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5f49112135c79977bd4a879e837f2f8192f76f41f17c7414163440b92d08e439
BLAKE2b-256 checksum
How to use checksums
30edc4c8b34705e4a76a4f488597037dd55756b9acbf0b8fbc7acb5067611618
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.4 {"installer":{"name":"uv","version":"0.10.4","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.8.0

2 release files

0.7.0

2 release files

0.6.2

2 release files

This release

0.6.1 This release

2 release files

0.6.0

2 release files

0.5.0

2 release files

0.4.0

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

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