Skip to content
Edit on GitHub

Live.next_step()

Signals that the current step has ended and increases step value by 1 (one).

def next_step()

Usage:

from dvclive import Live

live = Live()

for step in range(3):
    live.log("metric", 0.9)
    live.next_step()

Description

DVCLive uses step to track the progress of the data logged with Live.log() and/or Live.log_image().

You can use Live.next_step() to increase the step by 1 (one).

Each metric logged in between Live.next_step() (or Live.set_step()) calls will be associated to the updated step value.

Each Live.next_step() will call Live.make_report() internally by default (unless report is passed to Live() with a value other than "html").

DVC integration

When dvclive is used alongside DVC, each Live.next_step() call will have additional effects.

When checkpoints are enabled in the pipeline, DVC will create a new checkpoint on each Live.next_step() call.

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