Getting the ID#
Runs and other Neptune objects are automatically assigned an identifier (ID) based on the project key.
Example: If your project key is NER
, the 5th run logged to the project has the ID NER-5
.
App#
The Neptune ID is displayed:
- In the leftmost column of the table views.
- In the Details, when viewing a single run or other object.
API#
You can obtain the ID of any object by calling fetch()
on its sys/id
field:
>>> import neptune
>>> run = neptune.init_run(project="ml-team/named-entity-recognition")
>>> run_id = run["sys/id"].fetch()
>>> print(run_id)
'NER-5'
>>> model = neptune.init_model(key="FOREST")
>>> model_id = model["sys/id"].fetch()
>>> print(model_id)
'NER-FOREST'