class documentation

Sample batch using slices

Class Method split Create a list of sample batches
Method __init__ Undocumented
Method create_subset Create a sample collection from the batch
Instance Variable start_idx Undocumented
Instance Variable stop_idx Undocumented
Property total Get the total number of samples in the batch
@classmethod
def split(cls, sample_collection: SampleCollection[T], num_workers: int, batch_size: int | None = None) -> list[SampleSliceBatch]: (source)

Create a list of sample batches

def __init__(self, start_idx: int, stop_idx: int): (source)

Undocumented

def create_subset(self, sample_collection: SampleCollection[T]) -> SampleCollection[T]: (source)

Create a sample collection from the batch

start_idx = (source)

Undocumented

stop_idx = (source)

Undocumented

Get the total number of samples in the batch