Skip to content

zarrdataiterator

zarrdataiterator

Classes

ZarrDataIterator

ZarrDataIterator(
    scale_int_to_float=False, use_key_splits=None
)

Bases: TensordataIterator

This iterator allows to iterate over a zarr data file.

Parameters

scale_int_to_float: bool, default False Divides all values by 255 use_key_splits: Optional[str], default None if not none it uses this to combine multiple files to one key.

Source code in niceml/mlcomponents/resultanalyzers/tensors/zarrdataiterator.py
def __init__(
    self, scale_int_to_float: bool = False, use_key_splits: Optional[str] = None
):
    self.scale_int_to_float = scale_int_to_float
    self.data = None
    self.data_info: Optional[dict] = None
    self.use_key_splits: Optional[str] = use_key_splits