aistore.sdk.dataset.label_attribute
aistore.sdk.dataset.label_attribute
Module Contents
Classes
API
Bases: ConfigAttribute
Defines the labeling attributes for a dataset, mapping filenames to corresponding labels
Parameters:
name
The name of the attribute, used as a reference and identifier in the dataset
label_identifier
A function that maps a file name to a label
Get the data for a given filename
Parameters:
filename
The name of the file to retrieve data for
Returns: Tuple[str, any]
Tuple[str, any]: A tuple containing the sample key and the data for the given filename