Edit on GitHub


Serializes a summary of the logged metrics (Live.summary) to Live.metrics_file.

def make_summary()


from dvclive import Live

live = Live()
live.summary["foo"] = 1.0


The Live.summary object will contain the latest value of each metric logged with Live.log_metric(). It can be also modified manually, as in the snippet above.

Live.next_step() and Live.end() will call Live.make_summary() internally, so you don't need to call both.

The summary is usable by dvc metrics:

$ dvc metrics diff dvclive/metrics.json

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

Edit on GitHub

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

Discord Chat