Skip to content

analyzer

analyzer

Module for the ABC ResultAnalyzer

Classes

ResultAnalyzer

ResultAnalyzer()

Bases: ABC

After the prediction is done all data can be analyzed with a specific implementation of the ResultAnalyzer

Source code in niceml/mlcomponents/resultanalyzers/analyzer.py
def __init__(self):
    self.data_description = None
Functions
__call__ abstractmethod
__call__(dataset, exp_context, dataset_name)

Method to analyze one dataset

Source code in niceml/mlcomponents/resultanalyzers/analyzer.py
@abstractmethod
def __call__(
    self, dataset: Dataset, exp_context: ExperimentContext, dataset_name: str
):
    """Method to analyze one dataset"""
initialize
initialize(data_description)

Initializes the resultanalyzer and adds the data description

Source code in niceml/mlcomponents/resultanalyzers/analyzer.py
def initialize(self, data_description: DataDescription):
    """Initializes the resultanalyzer and adds the data description"""
    self.data_description = data_description