Attribute
Specifies an attribute and its type.
When fetching experiments or runs, use this class to filter and sort the returned entries.
Parameters
name
str
required
Attribute name to match exactly.
type
"float" | "int" | "string" | "bool" | "datetime" | "float_series" | "string_set" | "string_series" | "histogram_series" | "file_series"
optional
default: None
Attribute type. Specify it to resolve ambiguity, in case some of the project's runs contain attributes that have the same name but are of a different type.
Examples
Fetch metadata from experiments with "config/batch_size" set to the integer 64:
import neptune_query as nq
from neptune_query.filters import Attribute, Filter
batch_size = Attribute(
name="config/batch_size",
type="int",
)
nq.fetch_experiments_table(experiments=Filter.eq(batch_size, 64))