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

Presented by Cortex Technologies

mtrick is presented by Cortex Technologies, the engineering studio built to take your products from idea to device. Cortex brings together Machine Vision, Hardware, and AIoT embedded systems expertise to turn concepts into 'works-like' MVP prototype devices.

Metadata

Release files for mtrick 0.7.0

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.7.0
File Size Uploaded
mtrick-0.7.0.tar.gz 3.2 kB Details

Built distribution (wheel)

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

Total release size: 7.3 kB

Release files / mtrick-0.7.0.tar.gz

Download URL mtrick-0.7.0.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c0513f5fae1ec8ba68dabe1e8652c1086050d59f82776d6c193e22aabe2e36a1
BLAKE2b-256 checksum
How to use checksums
bd07ad462ddabafcddfafedd8b297d1693122c90bdfebbc6bb0c872973c46393
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.7.0-py3-none-any.whl

Download URL mtrick-0.7.0-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
761f538c01f7fe459d02918b696fa065e56d65624c2e367c9ae2e264dd2afc45
BLAKE2b-256 checksum
How to use checksums
e575742496a9dfea77a2651ebe02a9bb0e834d6b4d5f115dc541d6bac733180f
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

This release

0.7.0 This release

2 release files

0.6.2

2 release files

0.6.1

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