aistore.sdk.dataset.config_attribute

View as MarkdownOpen in Claude

Module Contents

Classes

NameDescription
ConfigAttributeAbstract class for defining the configuration of an attribute in a dataset

API

class aistore.sdk.dataset.config_attribute.ConfigAttribute()
Abstract

Abstract class for defining the configuration of an attribute in a dataset

aistore.sdk.dataset.config_attribute.ConfigAttribute.get_data_for_entry(
filename: str
) -> typing.Tuple[str, any]
abstract

Get the data for a given filename

Parameters:

filename
str

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