Metric logger for ML projects.
Project description
DVCLive
DVCLive is an open-source library for monitoring the progress of metrics during training of machine learning models. It’s built with Git and MLOps principles in mind:
Codification of data. Tracked metrics are stored in readable text files that can be versioned by Git or other version control tools.
Distributed. No services or servers are required. Metrics are stored in a Git repository as text files, or pointers to files in DVC storage.
GitOps API. Plots are generated through DVC using Git commit SHAs or branch names, e.g.:
dvc plots diff --target logs master
.
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.
DVCLive integrates seamlessly with DVC; the logs/summaries it produces can be fed as dvc plots
/dvc metrics
.
However, DVC is not required to work with dvclive logs/summaries, and since they’re saved as easily parsable .tsv
/.json
files, you can use your preferred visualization method.
Quick Start
Please read the Usage guide for a detailed version.
DVCLive is a Python library. The interface consists of three main methods:
dvclive.init(path)
- initializes a DVCLive logger. The metrics will be saved under (optional)path
, defaults to dvclive.dvclive.log(metric, value, step)
- logs the metric value. Thevalue
andstep
(optional) will be appended topath/{metric}.tsv
file.dvclive.next_step()
- signals that the current step has ended (implied when the samemetric
is logged again).
If you are ussing a ML training framework, check the existing integrations.
Installation
pip (PyPI)
pip install dvclive
Depending on the ML framework you plan to use to train your model, you might need to specify one of the optional dependencies: tf, xgb. Or all to include them all. The command should look like this: pip install dvclive[tf] (in this case TensorFlow and it’s dependencies will be installed automatically).
To install the development version, run:
pip install git+git://github.com/iterative/dvclive
Call to collaboration
Today only Python is supported (while DVC is language agnostic), with a minimum number of integrations with ML frameworks:
The DVCLive team is happy to extend the functionality as needed. Please create an issue to start a discussion!
Copyright
This project is distributed under the Apache license version 2.0 (see the LICENSE file in the project root).
By submitting a pull request to this project, you agree to license your contribution under the Apache license version 2.0 to this project.
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
Built Distribution
Hashes for dvclive-0.0.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c0abe8d31590124c13fe64e4149be3760cc9af511246f7db833a905546bf7458 |
|
MD5 | 93952116fd081d8757335f8537068082 |
|
BLAKE2b-256 | d60d50384dd94992252adce0442bff4e8c4d4894c25a550bea39fdf27e4babd0 |