class documentation

Base class for iterating over the elements of an iterable in batches.

Parameters
iterablean iterable to batch over
transform_fna transform function to apply to each item
return_viewswhether to return each batch as a fiftyone.core.view.DatasetView. Only applicable when the iterable is a fiftyone.core.collections.SampleCollection
progresswhether to render a progress bar tracking the consumption of the batches (True/False), use the default value fiftyone.config.show_progress_bars (None), or a progress callback function to invoke instead
totalthe length of iterable. Only applicable when progress=True. If not provided, it is computed via len(iterable), if possible
Method __enter__ Undocumented
Method __exit__ Undocumented
Method __init__ Undocumented
Method __iter__ Undocumented
Method __next__ Undocumented
Instance Variable iterable Undocumented
Instance Variable progress Undocumented
Instance Variable return_views Undocumented
Instance Variable total Undocumented
Instance Variable transform_fn Undocumented
Instance Variable _in_context Undocumented
Instance Variable _iter Undocumented
Instance Variable _last_batch_size Undocumented
Instance Variable _last_offset Undocumented
Instance Variable _num_samples Undocumented
Instance Variable _pb Undocumented
Instance Variable _render_progress Undocumented
def __enter__(self): (source)

Undocumented

def __exit__(self, *args): (source)

Undocumented

def __init__(self, iterable, transform_fn=None, return_views=False, progress=False, total=None): (source)
def __iter__(self): (source)

Undocumented

iterable = (source)

Undocumented

_in_context: bool = (source)

Undocumented

Undocumented

_last_offset: int = (source)

Undocumented

_num_samples = (source)

Undocumented

Undocumented

_render_progress = (source)

Undocumented