Skip to main content

Structured logging for ML experiments with schema validation and pluggable sinks.

Project description

Structured ML Logging

Structured (JSON) logging for ML experiments with schema validation and pluggable sinks.

Installation (dev)

pip install -e ".[dev]"

Quickstart

from mlog import get_logger, run_context

log = get_logger(project="demo", experiment="baseline", sink="stdout", validation="strict")

with run_context(run_id="run_001", tags={"team": "ml"}):
    log.param("lr", 0.01)
    log.metric("train.loss", 0.123, step=1)
    log.event("done")

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

structured_ml_logging-0.1.0.tar.gz (3.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

structured_ml_logging-0.1.0-py3-none-any.whl (13.4 kB view details)

Uploaded Python 3

File details

Details for the file structured_ml_logging-0.1.0.tar.gz.

File metadata

  • Download URL: structured_ml_logging-0.1.0.tar.gz
  • Upload date:
  • Size: 3.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for structured_ml_logging-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b910cf2975db8ef307ca04cfeac6036ce06f58475872ed8bac275a831fcbb857
MD5 ca3a569998c6c5c843c41ac8fd513714
BLAKE2b-256 f3db0d9f3d4d2428987ec994fa7afb9a9ebbfc206e1217b0daa30c2297ac670e

See more details on using hashes here.

File details

Details for the file structured_ml_logging-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for structured_ml_logging-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 722df9cc3e59768f7edb54a6259dc7a74ffb6816fc799bf9ba39bd6edefcf561
MD5 31b537ffdd247ad3def3c8e0149f94a8
BLAKE2b-256 2c0f4d00219d919a4d7f9b040bd3dabc3b88761d92b866736b6d84c383f3014a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page