class documentation
class SampleSliceBatch(fomb.SampleBatch): (source)
Constructor: SampleSliceBatch(start_idx, stop_idx)
Sample batch using slices
Class Method | split |
Create a list of sample batches |
Method | __init__ |
Undocumented |
Method | create |
Create a sample collection from the batch |
Instance Variable | start |
Undocumented |
Instance Variable | stop |
Undocumented |
Property | total |
Get the total number of samples in the batch |
@classmethod
def split(cls, sample_collection:
def split(cls, sample_collection:
SampleCollection[ T]
, num_workers: int
, batch_size: int | None
= None) -> list[ SampleSliceBatch]
:
(source)
¶
Create a list of sample batches