datasetops.abstract

Module Contents

Classes

ItemGetter

Helper class that provides a standard way to create an ABC using

AbstractDataset

Abstract base class defining a generic dataset interface.

class datasetops.abstract.ItemGetter

Bases: abc.ABC

Helper class that provides a standard way to create an ABC using inheritance.

abstract __getitem__(i: int) Tuple
class datasetops.abstract.AbstractDataset

Bases: ItemGetter

Abstract base class defining a generic dataset interface.

property generator
name =
abstract __len__() int

Return the total number of elements in the dataset.

abstract __getitem__(idx: int) Tuple

Returns the element at the specified index.

Parameters

idxint

the index from which to read the sample.

__iter__()