datumaro.plugins.data_formats.arrow.base#
Classes
|
|
|
|
|
- class datumaro.plugins.data_formats.arrow.base.ArrowSubsetBase(lookup: ~typing.Dict[str, ~datumaro.components.dataset_base.DatasetItem], infos: ~typing.Dict[str, ~typing.Any], categories: ~typing.Dict[~datumaro.components.annotation.AnnotationType, ~datumaro.components.annotation.Categories], subset: str, media_type: ~typing.Type[~datumaro.components.media.MediaElement] = <class 'datumaro.components.media.Image'>, ann_types: ~typing.Set[~datumaro.components.annotation.AnnotationType] | None = None)[source]#
Bases:
SubsetBase
- class datumaro.plugins.data_formats.arrow.base.Metadata(infos: Dict, categories: Dict, media_type: Type[datumaro.components.media.MediaElement])[source]#
Bases:
object
- media_type: Type[MediaElement]#
- class datumaro.plugins.data_formats.arrow.base.ArrowBase(root_path: str, *, file_paths: List[str], ctx: ImportContext | None = None)[source]#
Bases:
DatasetBase
- categories() Dict[AnnotationType, Categories] [source]#
Returns metainfo about dataset labels.
- get(item_id: str, subset: str | None = None) DatasetItem | None [source]#
Provides random access to dataset items.