fetch_experiments_table()
Python package: neptune-query
Fetches a table of experiment metadata, with runs as rows and attributes as columns.
To narrow the results, define filters for experiments to search or attributes to include.
Parameters
Returns
pandas.DataFrame
– A DataFrame similar to the runs table in the web app.
The DataFrame has:
- a single-level index
"experiment"
with experiment names - a single-level column index with attribute names
For series attributes, the last logged value is returned.
Raises
AttributeTypeInferenceError
– If the attribute type wasn't specified in a filter passed to theexperiments
argument, and the attribute has multiple types across the project's experiments.ConflictingAttributeTypes
– If there are conflicting attribute types under the same path and thetype_suffix_in_column_names
argument is set toFalse
.
Example
Fetch attributes matching loss
or batch_size
from four specific experiments:
import neptune_query as nq
nq.fetch_experiments_table(
experiments=["seabird-1", "seabird-2", "seabird-3", "seabird-4"],
attributes=r"loss | batch_size",
type_suffix_in_column_names=True,
)
Sample output
config/batch_size:float config/batch_size:int loss:float_series
experiment
seabird-4 64.0 NaN 0.181736
seabird-3 NaN 64.0 0.123372
seabird-2 NaN 32.0 0.224408
seabird-1 NaN 32.0 0.205908