Skip to content

Releases: iterative/dvclive

1.1.1

07 Dec 19:58

Choose a tag to compare

What's Changed

Full Changelog: 1.1.0...1.1.1

1.1.0: DVCLive experiments

01 Dec 18:26

Choose a tag to compare

DVCLive Experiments

Can be enabled by passing save_dvc_exp=True.

# foo.py
import random
from dvclive import Live

with Live(save_dvc_exp=True) as live:
    live.log_param("fooparam", random.random())
    for i in range(4):
        live.log_metric("foo", i * random.random())
        live.next_step()

When inside a DVC repository and DVC is available as a Python library, DVCLive will create a new DVC experiment as part of live.end (called on exit of context manager and inside the integrations with ML frameworks).

$ python foo.py
$ dvc exp show
 ───────────────────────────────────────────────────────────────── 
  Experiment                 Created        foo   step   fooparam  
 ───────────────────────────────────────────────────────────────── 
  workspace                  -          0.56773      4   0.20543   
  master                     03:45 PM         -      -   -         
  └── fbed990 [rowdy-vase]   07:25 PM   0.56773      4   0.20543   
 ───────────────────────────────────────────────────────────────── 
$ python foo.py
$ dvc exp show
 ───────────────────────────────────────────────────────────────── 
  Experiment                 Created        foo   step   fooparam  
 ───────────────────────────────────────────────────────────────── 
  workspace                  -           2.2236      4   0.65216   
  master                     03:45 PM         -      -   -         
  ├── 4ec327f [shock-weka]   07:25 PM    2.2236      4   0.65216   
  └── fbed990 [rowdy-vase]   07:25 PM   0.56773      4   0.20543   
 ───────────────────────────────────────────────────────────────── 

What's Changed

Full Changelog: 1.0.3...1.1.0

1.0.3

30 Nov 19:34

Choose a tag to compare

What's Changed

Full Changelog: 1.0.2...1.0.3

1.0.2

28 Nov 21:26
bdcc095

Choose a tag to compare

What's Changed

Full Changelog: 1.0.1...1.0.2

1.0.1

08 Nov 06:34

Choose a tag to compare

What's Changed

Full Changelog: 1.0...1.0.1

1.0.0

06 Nov 18:13

Choose a tag to compare

1.0

Breaking changes

  • Changes to the structure of the output directory and where methods write to #322
Method Before Now
live.log_image dvclive/images dvclive/plots/images
live.log_metric dvclive/scalars dvclive/plots/metrics
live.log_sklearn_plot dvclive/plots dvclive/plots/sklearn
live.make_summary dvclive.json dvclive/summary.json
  • live.log renamed to live.log_metric #343
  • live.log_plot renamed to live.log_sklearn_plot #322
  • Removed live.get_step() and live.set_step() in favor of live.step property. #357
  • live.log_image No longer creates step subfolder. Instead overrides the previous step #331
    The subfolder structure can be still manually created:
for i in range(2):
    live.log_image(f"{live.step}/img.png", img)
  • live.log_metric No longer calls live.make_summary #353
  • live.log_sklearn_plot No longer raises error on step logging. Instead overrides previous step.
  • Dropped support for live section in dvc.yaml #337

New Features

  • Live can now be used as a context manager #354
with Live() as live:
    live.log_metric("foo", 0.1)
  • New Live.summary can be used to add metrics directly to the summary #354
with Live() as live:
    for epoch in range(EPOCHS):
        live.log_metric("loss", 0.1)
    live.summary["additional_metric"] = 1.0
  • Option to provide custom name for Live.log_sklearn_plot
live.log_sklearn_plot("confusion_matrix", y_true, y_pred, name="train/cm")

Full Changelog: 0.12.1...1.0

1.0 💥

05 Nov 10:07

Choose a tag to compare

1.0

Breaking changes

  • Changes to the structure of the output directory and where methods write to #322
Method Before Now
live.log_image dvclive/images dvclive/plots/images
live.log_metric dvclive/scalars dvclive/plots/metrics
live.log_sklearn_plot dvclive/plots dvclive/plots/sklearn
live.make_summary dvclive.json dvclive/summary.json
  • live.log renamed to live.log_metric #343
  • live.log_plot renamed to live.log_sklearn_plot #322
  • Removed live.get_step() and live.set_step() in favor of live.step property. #357
  • live.log_image No longer creates step subfolder. Instead overrides the previous step #331
    The subfolder structure can be still manually created:
for i in range(2):
    live.log_image(f"{live.step}/img.png", img)
  • live.log_metric No longer calls live.make_summary #353
  • live.log_sklearn_plot No longer raises error on step logging. Instead overrides previous step.
  • Dropped support for live section in dvc.yaml #337

New Features

  • Live can now be used as a context manager #354
with Live() as live:
    live.log_metric("foo", 0.1)
  • New Live.summary can be used to add metrics directly to the summary #354
with Live() as live:
    for epoch in range(EPOCHS):
        live.log_metric("loss", 0.1)
    live.summary["additional_metric"] = 1.0
  • Option to provide custom name for Live.log_sklearn_plot
live.log_sklearn_plot("confusion_matrix", y_true, y_pred, name="train/cm")

Full Changelog: 0.12.1...1.0

0.12.1

20 Oct 17:50
a4abfc7

Choose a tag to compare

What's Changed

  • simplify/speedup catalyst tests by @skshetry in #327
  • report: Don't set md if matplotlib is not installed. by @daavoo in #334

Full Changelog: 0.12.0...0.12.1

0.12.0

05 Oct 14:09
7561672

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.11.0...0.12.0

0.11.0: Use py-template and add `log_param`

26 Sep 10:34

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.10.0...0.11.0