Resume a run
To continue logging to an existing run, use the Run
constructor and:
- Pass the run identifier to the
run_id
argument. - Set the
resume
argument toTrue
.
run = Run(
run_id="SomeExistingRunId",
resume=True,
)
After resuming a connection to the run, you can continue logging normally.
Example
Connect to an existing run and log new metadata:
from neptune_scale import Run
run = Run(
run_id="seagull-s68kj78",
resume=True,
)
# continune logging metrics
for step in epoch: # start where the last run left off
run.log_metrics(
...,
step=step,
)
run.add_tags(tags=["best"])
Overwriting existing metadata
Note that calling log_configs()
and passing different values for existing attributes will overwrite the previous values.
For details, see Edit run configs.
When logging metrics, previously logged steps are not affected. You can continue logging metrics at any step that's higher than the series' last entry.