Returns the current step
value.
def get_step() -> int:
from dvclive import Live
live = Live()
while live.get_step() < 3:
live.log("metric", 0.9)
live.next_step()
DVCLive uses step
to track the progress of the data logged with Live.log()
and/or Live.log_image()
.
The current step
value can be retrieved with Live.get_step()
.
In order to update the step
value, you can use Live.next_step()
or
Live.set_step()
.