aistore.sdk.dataset.data_attribute
aistore.sdk.dataset.data_attribute
aistore.sdk.dataset.data_attribute
Bases: ConfigAttribute
Handles data attributes for datasets, managing the retrieval of attribute data from files
Parameters:
The file path where the attribute data is stored
The name of the attribute, used as a reference and identifier in the dataset
The type of file that stores the attribute data (e.g., ‘jpg’, ‘png’, ‘csv’)
Get the data for a given filename
Parameters:
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