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 {Live.dir}/dvc.yaml, which describes and configures metrics, plots, and parameters. DVC tools use this file to show reports and experiments tables.

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

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
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