ML experiment tracking library built on pybag-sdk
Project description
Track
An experiment tracking library built on top of pybag.
Minimal Logger Examples
output_dir is a directory. The logger writes to <output_dir>/<YYYYMMDD_HHMMSS_microseconds>_<logger-name>.mcap.
1. Log messages
from track import Logger
logger = Logger("demo", output_dir="logs").open()
logger.info("training started")
logger.warning("learning rate is high")
logger.close()
2. Log an image (NumPy array)
import numpy as np
from track import Logger
image = np.zeros((64, 64, 3), dtype=np.uint8)
image[:, :, 1] = 255 # green
logger = Logger("demo", output_dir="logs").open()
logger.log_image("camera/rgb", image, format="png")
logger.close()
3. Log a point cloud (structured array)
import numpy as np
from track import Logger
dtype = np.dtype([("x", "f4"), ("y", "f4"), ("z", "f4")])
points = np.zeros(3, dtype=dtype)
points["x"] = [0.0, 1.0, 0.0]
points["y"] = [0.0, 0.0, 1.0]
points["z"] = [0.0, 0.0, 0.0]
logger = Logger("demo", output_dir="logs").open()
logger.log_pointcloud("lidar", points)
logger.close()
4. Add metadata and attachments
from track import Logger
logger = Logger("demo", output_dir="logs").open()
logger.add_metadata("experiment", {"name": "baseline", "epoch": "1"})
logger.add_attachment(
"config.json",
b'{"batch_size": 32}',
media_type="application/json",
)
logger.close()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
track_sdk-0.2.0.tar.gz
(7.9 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file track_sdk-0.2.0.tar.gz.
File metadata
- Download URL: track_sdk-0.2.0.tar.gz
- Upload date:
- Size: 7.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d15002a3bd474a364e4ebfe7c92664100e0c8a7e8a4641a4973b173193133802
|
|
| MD5 |
4634dace939d6edd5df7ec5825924d99
|
|
| BLAKE2b-256 |
29903561d83ee9460f5ced67979707e3ad910b8231b861222082337c83597063
|
File details
Details for the file track_sdk-0.2.0-py3-none-any.whl.
File metadata
- Download URL: track_sdk-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.10.7 {"installer":{"name":"uv","version":"0.10.7","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}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2262d4d8862fd446b00c2543cf9afe9de9cf4a8a7c2761cd8e2ced4d1b67a48d
|
|
| MD5 |
0ec2f90440d0144c0dfafad2cef1163a
|
|
| BLAKE2b-256 |
9f02ac5342711b83ed9c19d0108ceba472ab6153e5814e7c1297a43a02b9a2ef
|