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.6.2

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

Built distribution (wheel)

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

Total release size: 7.2 kB

Release files / mtrick-0.6.2.tar.gz

Download URL mtrick-0.6.2.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
8f13e081f961b0881699f04ef1d302c1c5981c6081f94e1ab6baddf34dcaa855
BLAKE2b-256 checksum
How to use checksums
3a7870435dd6a99328c5a202be74be2bcb8e372378ea6f559856e40e62b31db4
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.2-py3-none-any.whl

Download URL mtrick-0.6.2-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4f7bf9566096f9b2d0dbbbd43b9f801f1962eec1e4ab9cf5df7b843ebd230c4d
BLAKE2b-256 checksum
How to use checksums
1fb9f81c7b023ed8ad043e0c0fdfd2f7679602ce5ab1c63109046e4bfa02fe8f
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

This release

0.6.2 This release

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