Skip to content

tensordataiterators

tensordataiterators

Module for tensordataiterator

Classes

TensordataIterator

Bases: ABC

TensordataIterators are used in the tensoranalyser to load and iterate over the data.

Functions
__getitem__ abstractmethod
__getitem__(item)

Access to an specific item

Source code in niceml/mlcomponents/resultanalyzers/tensors/tensordataiterators.py
@abstractmethod
def __getitem__(self, item):
    """Access to an specific item"""
__iter__ abstractmethod
__iter__()

Returning an iterator

Source code in niceml/mlcomponents/resultanalyzers/tensors/tensordataiterators.py
@abstractmethod
def __iter__(self):
    """Returning an iterator"""
open abstractmethod
open(path, file_system=None)

Method to start with before using the iterator

Source code in niceml/mlcomponents/resultanalyzers/tensors/tensordataiterators.py
@abstractmethod
def open(self, path: str, file_system: Optional[AbstractFileSystem] = None):
    """Method to start with before using the iterator"""