Dvclive

Latest version: v3.46.1

Safety actively analyzes 638773 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 7 of 20

2.7.0

New Features

`artifacts` section

You can now pass metadata to [`Live.log_artifact` ](https://dvc.org/doc/dvclive/live/log_artifact) that will be written to a new `artifacts` section in the [`dvc.yaml`](https://dvc.org/doc/user-guide/project-structure/dvcyaml-files) located at `{Live.dir}/{Live.dvc_file}`.

Available metadata fields are:

py
type: Optional[str] = None,
name: Optional[str] = None,
desc: Optional[str] = None,
labels: Optional[List[str]] = None,
meta: Optional[Dict[str, Any]] = None,


When passing `type="model"`, the artifact will be identified by [Studio](https://studio.iterative.ai/) and automatically included in the [Studio Model Registry](https://dvc.org/doc/studio/user-guide/model-registry/).

- Example

py
from pathlib import Path
from dvclive import Live

Path("model.pth").write_text("foo")

with Live(save_dvc_exp=True) as live:
live.log_artifact(
"model.pth",
type="model",
name="mymodel",
desc="Finetuned ResNet50",
)

yaml
dvclive/dvc.yaml
artifacts:
mymodel:
path: ../model.pth
type: model
desc: Finetuned ResNet50


Auto-initialization of DVC Repo

When inside a non-empty Git Repository, DVCLive will auto-initialize a DVC Repository when needed.

What's Changed
* Add DVCLive-Quickstart by daavoo in https://github.com/iterative/dvclive/pull/530
* studio: Support `DVC_` env vars. by daavoo in https://github.com/iterative/dvclive/pull/533
* Support `artifacts` section by daavoo in https://github.com/iterative/dvclive/pull/521
* feat(sklplots): add confusion matrix normalized option by shcheklein in https://github.com/iterative/dvclive/pull/538
* revert get_dvc_stage_template by dberenbaum in https://github.com/iterative/dvclive/pull/540
* Auto-initialize DVC repo by dberenbaum in https://github.com/iterative/dvclive/pull/539

New Contributors
* dependabot made their first contribution in https://github.com/iterative/dvclive/pull/503

**Full Changelog**: https://github.com/iterative/dvclive/compare/2.6.4...2.7.0

2.6.4

What's Changed
* Maintenance by daavoo in https://github.com/iterative/dvclive/pull/527
* Update README by daavoo in https://github.com/iterative/dvclive/pull/528
* studio: Save experiment before posting `done` event. by daavoo in https://github.com/iterative/dvclive/pull/529


**Full Changelog**: https://github.com/iterative/dvclive/compare/2.6.3...2.6.4

2.6.3

What's Changed
* Support path to an image in `log_image` by shcheklein in https://github.com/iterative/dvclive/pull/518

**Full Changelog**: https://github.com/iterative/dvclive/compare/2.6.2...2.6.3

2.6.2

What's Changed
* live: Be more conservative when git adding paths inside `dvc exp run`. by daavoo in https://github.com/iterative/dvclive/pull/517


**Full Changelog**: https://github.com/iterative/dvclive/compare/2.6.1...2.6.2

2.6.1

What's Changed
* optuna: Use `summary` instead of `log_metric`. by daavoo in https://github.com/iterative/dvclive/pull/514


**Full Changelog**: https://github.com/iterative/dvclive/compare/2.6.0...2.6.1

2.6.0

What's Changed
* report: Use base64 images for HTML. by daavoo in https://github.com/iterative/dvclive/pull/508
* live: Track `self._dir` when `self._inside_dvc_exp`. by daavoo in https://github.com/iterative/dvclive/pull/511
* make_dvcyaml: Include `metrics` section also if `live.summary`. by daavoo in https://github.com/iterative/dvclive/pull/512


**Full Changelog**: https://github.com/iterative/dvclive/compare/2.5.1...2.6.0

Page 7 of 20

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.