Skip to main content

Metric logger for ML projects.

Project description

DVCLive

DVCLive is an open-source library for monitoring machine learning model performance. It’s an ML logger similar to MLFlow, Weights & Biases, Neptune, Tensorboard, etc., but built on top of DVC, and with Git and MLOps principles in mind:

  1. Codification of data. Tracked metrics are stored in readable text files that can be versioned by Git or other version control tools.

  2. Distributed. No services or servers are required. Metrics are stored in a Git repository as text files, or pointers to files in DVC storage.

  3. GitOps API. Plots are generated through DVC using Git commit SHAs or branch names, e.g.: dvc plots diff --target logs master.

https://dvc.org/static/cdc4ec4dabed1d7de6b8606667ebfc83/9da93/dvclive-diff-html.png
  1. Automation. DVCLive metrics are easy to use by any automation, DevOps, or MLOps tool such as CI/CD (including CML), custom scripts, or ML platforms.

Python API

DVCLive is a Python library. The interface consists of three main methods:

  1. dvclive.init(path) - initializes a DVCLive logger. The metrics will be saved under path.

  2. dvclive.log(metric, value, step) - logs the metric value. The value and step (optional) will be appended to path/{metric}.tsv file.

  3. dvclive.next_step() - signals that the current step has ended (implied when the same metric is logged again).

Call to collaboration

Today only Python is supported (while DVC is language agnostic), with a minimum number of connectors to ML libs (Keras, XGBoost). The DVCLive team is happy to extend the functionality as needed. Please create an issue to start a discussion!

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

dvclive-0.0.3.tar.gz (8.1 kB view hashes)

Uploaded Source

Built Distribution

dvclive-0.0.3-py2.py3-none-any.whl (13.4 kB view hashes)

Uploaded Python 2 Python 3

Supported by

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