dfanalyzer
dfanalyzer ¶
Module for DataframeAnalyzer and DfMetric
Classes¶
DataframeAnalyzer ¶
Bases: ResultAnalyzer
Result analyzer for dataframes
Initialize a result analyzer for dataframes
Source code in niceml/mlcomponents/resultanalyzers/dataframes/dfanalyzer.py
Functions¶
__call__ ¶
Calculate values of the metrics in self.metrics
and save them into a csv file.
Parameters:
-
dataset
–Dataset of the experiment. Not used in this function
-
exp_context
(ExperimentContext
) –Current
ExperimentContext
to read and write files -
subset_name
(str
) –Name the subset
Source code in niceml/mlcomponents/resultanalyzers/dataframes/dfanalyzer.py
initialize ¶
The initialize function initialized the metrics in self.metrics
This function is called once before the first call to the
evaluate function. It can be used to initialize any variables that are needed
for evaluation. The data_description parameter contains information about the
data set, such as number of classes and feature names.
Parameters:
-
data_description
(DataDescription
) –DataDescription
used to initialize instances of this class and the metrics