caution
You're viewing docs for the deprecated Fetcher API.
We recommend upgrading to the new Query API.
fetch_metrics()
Python package: neptune-fetcher
Returns raw values for the requested metrics. The returned values don't include any aggregation, approximation, or interpolation.
Fetch experiment metrics
You can filter the results by:
- Experiments: Specify which experiments to search.
- Attributes: Only list attributes that match certain criteria.
Parameters
Example
Fetch loss metrics from experiments matching a regex, including point previews and only values logged from step 1000 onward:
import neptune_fetcher.alpha as npt
npt.fetch_metrics(
experiments=r"seagull.*_estimated$",
attributes=r"^loss/.*",
step_range=(1000.0, None),
include_point_previews=True,
)
Output
path loss/train
is_preview preview_completion value
experiment step
seagull-45xc099_estimated 1000.0 False 1.0 0.193153
1001.0 False 1.0 0.166237
1002.0 False 1.0 0.12602
...
Fetch run metrics
You can filter the results by:
- Runs: Specify which runs to search.
- Attributes: Only list attributes that match certain criteria.
Parameters
Example
Fetch accuracy metrics from runs matching a regex, including the last 3 values from each series:
from neptune_fetcher.alpha import runs
runs.fetch_metrics(
runs=r"marigold",
attributes=r"accuracy",
tail_limit=3,
)
Output
accuracy
run step
arrogant-millipede+marigold-finch 49.0 0.830062
50.0 0.828428
51.0 0.825925
marigold-finch+realistic-dolphin 31.0 0.970358
32.0 0.986717
33.0 0.971492
marigold-finch+thundering-mantis 29.0 0.925642
30.0 0.963742
31.0 0.970358