Edit on GitHub

Live.make_dvcyaml()

Writes DVC configuration for metrics, plots, and parameters to Live.dvc_file.

def make_dvcyaml()

Usage

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.make_dvcyaml()

Description

Creates dvc.yaml, which describes and configures metrics, plots, and parameters. DVC tools use this file to show reports and experiments tables.

Live.next_step() and Live.end() will call Live.make_dvcyaml() internally, so you don't need to call both (unless dvcyaml=None).

params:
  - dvclive/params.yaml
metrics:
  - dvclive/metrics.json
plots:
  - dvclive/plots/metrics
  - dvclive/plots/sklearn/confusion_matrix.json:
      template: confusion
      x: actual
      y: predicted
      title: Confusion Matrix
      x_label: True Label
      y_label: Predicted Label
Content

๐Ÿ› Found an issue? Let us know! Or fix it:

Edit on GitHub

โ“ Have a question? Join our chat, we will help you:

Discord Chat