Overwrite logged metadata#
This page explains the mechanics to overwrite or override metadata logged to runs or other objects.
If you assign new data to an existing field, that data will overwrite the data previously logged to that field.
Iterative logging methods do not overwrite previous values when resuming a run. These are:
Overriding regular fields#
Overwriting the metadata stored under a namespace or field cannot be undone.
To edit the value of an existing field, you overwrite it with new data of the same type.
If the run that you want to modify is already active, you can simply re-execute the code that assigns metadata to the field.
The value of the
learning_rate field has been changed to
0.02 instead of
Resuming an inactive run#
If the run that you wish to edit is already inactive, you need to reinitialize it in your code.
How do I find the ID?
If the run is active, you can also fetch its ID via API:
Overriding series fields#
If you resume a run and continue logging to an existing series field, the new values won't overwrite the previous ones.
To overwrite the series field (have it start from a new set of values), you need to pop or delete the field first.
You can also change the field path to something else, which will preserve the old series.
Avoiding accidental overwrite#
In general, logging data of a different type to an existing field will automatically fail. In this case, Neptune assumes overwriting is not the intention and throws an exception.
Otherwise, if you frequently update existing runs, you should have some safeguard in place whenever you access fields that already have metadata assigned to them.
Using read only mode#
If you're just fetching metadata and not logging anything new, you can use read-only mode. This ensures that any initialized runs or other Neptune objects won't be modified.
You can also set the connection mode with the
NEPTUNE_MODE environment variable.
Editing name, description, or tags#
You can edit basic information about runs and model objects directly in the Neptune app.
Next to the run ID, click the run menu () and select Show run information.
Edit the information as needed.
- When you're done, click the check mark ().
To learn more, see Edit name or description.