Releases: iterative/dvclive
Releases · iterative/dvclive
2.2.0
What's Changed
- live: Ignore
DvcException
insave_dvc_exp
. by @daavoo in #470 - Add step to plots config by @dberenbaum in #478
- lightning: more robust metric name standardization by @dberenbaum in #480
- lightning: Determine when to call next_step based on
inspect.stack
. by @daavoo in #483
Full Changelog: 2.1.0...2.2.0
2.1.0: Add Notebook report
What's Changed
- drop questionable words from exp names by @dberenbaum in #457
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #458
- report: Add
notebook
mode. by @daavoo in #432 - report: Use
HTML
instead ofIFrame
inside Google Colab. by @daavoo in #461
Full Changelog: 2.0.2...2.1.0
2.0.2
What's Changed
- Introduce
dvcyaml: bool = True
kwarg for DVCLiveLogger by @francisquintallauzon in #455
New Contributors
- @francisquintallauzon made their first contribution in #455
Full Changelog: 2.0.1...2.0.2
2.0.1
Fixes from 2.0.0
- Fix
Live(save_dvc_exp=True)
to save experiments even if there is an existingdvc.yaml
pipeline #448 - Fix field names in metrics history plots to use shortened names and path-separated titles #450 #451
Full Changelog: 2.0.0...2.0.1
2.0.0
Breaking changes
Control when to write DVC configuration file (dvclive/dvc.yaml
)
- Add
dvcyaml
keyword argument toLive()
(default:True
) to control when to writedvclive/dvc.yaml
, which configures how DVC shows metrics, plots, and parameters #443. Previously, DVCLive determined implicitly whether to writedvclive/dvc.yaml
. - Add
Live.make_dvcyaml()
method to writedvclive/dvc.yaml
#443. Live()
will no longer removedvclive/dvc.yaml
#440.
Example:
from dvclive import Live
live = Live()
live.log_param("lr", 0.01)
live.log_metric("acc", 0.9)
live.log_sklearn_plot("confusion_matrix", [0, 0, 1, 1], [1, 0, 0, 1])
live.next_step()
By default, live.next_step()
calls live.make_dvcyaml()
, which writes DVC configuration to dvclive/dvc.yaml
:
params:
- params.yaml
metrics:
- metrics.json
plots:
- plots/metrics
- plots/sklearn/confusion_matrix.json:
template: confusion
x: actual
y: predicted
title: Confusion Matrix
x_label: True Label
y_label: Predicted Label
If you are already tracking DVCLive metrics, plots, and parameters in your own
dvc.yaml
file, set Live(dvcyaml=False)
to avoid duplication.
Allow overwriting data
- Stop throwing errors if data was already logged for a step #445
Example:
from dvclive import Live
live = Live()
live.log_metric("acc", 0.9)
live.log_metric("acc", 0.95) # previously would have raised an error
Shorten field names
- Shorten path-separated names in metrics history files and plots #444
Example:
from dvclive import Live
live = Live()
live.log_metric("train/epoch/acc", 0.9)
This will generate a metrics history file at dvclive/plots/metrics/train/epoch/acc.tsv
with the field acc
. Previously, the field would be train/epoch/acc
, duplicating the path name and resulting in lengthy plots legends.
Before:
After:
Full Changelog: 1.4.0...2.0.0
1.4.0
What's Changed
- live: Skip
live.end
calls inside context manager. by @daavoo in #436 - chore(packages): bump dvc-studio-client>=0.4.0 by @mvshmakov in #441
New Contributors
- @mvshmakov made their first contribution in #441
Full Changelog: 1.3.4...1.4.0
1.3.4
1.3.3
What's Changed
- use os line separator by @dberenbaum in #427
- Update pytorch_lightning.utilities.logger import. by @daavoo in #430
Full Changelog: 1.3.2...1.3.3