Skip to main content
App version: 3.4.8

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

NameTypeDefaultDescription
experimentsUnion[str, Filter], optionalNoneA filter specifying experiments to which the attributes belong
  • a regex that the experiment name must match, or
  • a Filter object
attributesUnion[str, AttributeFilter], optionalNoneA filter specifying which attributes to include in the table If AttributeFilter.aggregations is set, an exception will be raised as they're not supported in this function.
contextContext, optionalNoneWhich 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

NameTypeDefaultDescription
runsUnion[str, Filter], optionalNoneA filter specifying which runs to include:
  • a regex that the run ID must match, or
  • a Filter object.
attributesUnion[str, AttributeFilter], optionalNoneA filter specifying which attributes to include in the table If AttributeFilter.aggregations is set, an exception will be raised as they're not supported in this function.
contextContext, optionalNoneWhich 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',
...]