list_attributes()
Python package: neptune-fetcher
You can filter the results by:
- Experiment or run: Specify which experiments or runs to search.
- Attributes: Only list attributes that match certain criteria.
List experiment attributes
Returns a list of unique attribute names in a project's experiments.
Parameters
Name | Type | Default | Description |
---|---|---|---|
experiments | Union[str, Filter] , optional | None | A filter specifying experiments to which the attributes belong
|
attributes | Union[str, AttributeFilter] , optional | None | A filter specifying which attributes to include in the table
AttributeFilter.aggregations is set, an exception will be raised as they're not supported in this function. |
context | Context , optional | None | Which project and API token to use for the fetching operation. Useful for switching projects. |
Example
List all attributes:
import neptune_fetcher.alpha as npt
npt.list_attributes()
Output
['Notes',
'accuracy',
'loss',
'parameters/batch_size',
'parameters/learning_rate',
'parameters/optimizer',
'parameters/use_preprocessing',
'sys/creation_time',
...]
Filter the listed attributes:
npt.list_attributes(
experiments=r"kittiwake$",
attributes=r"^sys"
)
Output
['sys/creation_time',
'sys/custom_run_id',
'sys/description',
'sys/experiment/is_head',
'sys/experiment/name',
...]
List run attributes
Returns a list of unique attribute names in a project's runs.
Parameters
Name | Type | Default | Description |
---|---|---|---|
runs | Union[str, Filter] , optional | None | A filter specifying which runs to include:
|
attributes | Union[str, AttributeFilter] , optional | None | A filter specifying which attributes to include in the table
AttributeFilter.aggregations is set, an exception will be raised as they're not supported in this function. |
context | Context , optional | None | Which project and API token to use for the fetching operation. Useful for switching projects. |
Examples
List all run attributes:
from neptune_fetcher.alpha import runs
runs.list_attributes()
Output
['Notes',
'accuracy',
'loss',
'parameters/batch_size',
'parameters/learning_rate',
'parameters/optimizer',
'parameters/use_preprocessing',
'sys/creation_time',
...]
Filter the listed attributes:
runs.list_attributes(
runs=r"kittiwake_02.*25",
attributes=r"^sys",
)
Output
['sys/creation_time',
'sys/custom_run_id',
'sys/description',
'sys/experiment/is_head',
'sys/experiment/name',
...]