Skip to content

netdatalogger

netdatalogger

Module fot the abstract NetDataLogger

Classes

NetDataLogger

NetDataLogger()

Bases: ABC

Abstract implementation of an NetDataLogger

Initializes the NetDataLogger with default values

Source code in niceml/data/netdataloggers/netdatalogger.py
def __init__(self):
    """Initializes the NetDataLogger with default values"""
    self.data_description = None
    self.exp_context = None
    self.set_name = None
    self.output_path = None
Functions
initialize
initialize(data_description, exp_context, set_name)

Method to initialize the NetDataLogger

Source code in niceml/data/netdataloggers/netdatalogger.py
def initialize(
    self,
    data_description: DataDescription,
    exp_context: ExperimentContext,
    set_name: str,
):
    """Method to initialize the NetDataLogger"""
    self.data_description = data_description
    self.exp_context = exp_context
    self.set_name = set_name
log_data abstractmethod
log_data(net_inputs, net_targets, data_info_list)

Logs the data sent as inputs and targets to a model, e.g. images and class labels or bounding boxes.

Parameters:

  • net_inputs (ndarray) –

    Input data of a model as np.ndarray

  • net_targets (ndarray) –

    Target data of a model as np.ndarray

  • data_info_list (List[DataInfo]) –

    Associated data information of input and

Returns:

  • None

Source code in niceml/data/netdataloggers/netdatalogger.py
@abstractmethod
def log_data(
    self,
    net_inputs: np.ndarray,
    net_targets: np.ndarray,
    data_info_list: List[DataInfo],
):
    """
    Logs the data sent as inputs and targets to a model,
    e.g. images and class labels or bounding boxes.

    Args:
        net_inputs: Input data of a model as `np.ndarray`
        net_targets: Target data of a model as `np.ndarray`
        data_info_list: Associated data information of input and
        destination with extended information

    Returns:
        None

    """