Fetch run metadata
Python package: neptune-fetcher
Experiments consist of runs. By default, the Fetcher API returns metadata only from experiment head runs, not all individual runs.
Use the following fetching methods for runs:
To work with runs in your code:
-
Import the
runs
module:from neptune_fetcher.alpha import runs
-
Prepend
runs
to the method call:runs.fetch_metrics()
-
Instead of the
experiments
parameter, useruns
:runs.fetch_metrics(
runs=...
)
Note the difference in identifying runs versus experiments:
- Experiments are characterized by name (
sys/name
). This is the string passed to thename
argument at creation. - Runs are characterized by ID (
sys/custom_run_id
). This is the string passed to therun_id
argument at creation.
Example
from neptune_fetcher.alpha import runs
runs.fetch_metrics(
runs=r"^speedy-seagull.*_02", # run ID
attributes=r"losses/.*",
)