def result_report_class_wise(self):
        """Report class-wise results

        Returns
        -------
        str
            result report in string format

        """

        results = self.results_class_wise_metrics()

        output = self.ui.section_header('Class-wise metrics', indent=2) + '\n'
        output += self.ui.row(
            'Tag', 'Nref', 'Nsys', 'F-score', 'Pre', 'Rec', 'EER',
            widths=[20, 12, 12, 12, 12, 12, 12],
            separators=[True, False, True, False, False, True, False],
            indent=4
        ) + '\n'
        output += self.ui.row('-', '-', '-', '-', '-', '-', '-') + '\n'

        for tag_label in self.tag_label_list:
            if results[tag_label]['f_measure']['f_measure'] is not None:
                f_measure = results[tag_label]['f_measure']['f_measure'] * 100

            else:
                f_measure = None

            if results[tag_label]['f_measure']['precision'] is not None:
                precision = results[tag_label]['f_measure']['precision'] * 100

            else:
                precision = None

            if results[tag_label]['f_measure']['recall'] is not None:
                recall = results[tag_label]['f_measure']['recall'] * 100

            else:
                recall = None

            if results[tag_label]['eer']['eer'] is not None:
                eer = results[tag_label]['eer']['eer'] * 100

            else:
                eer = None

            output += self.ui.row(
                tag_label,
                results[tag_label]['count']['Nref'],
                results[tag_label]['count']['Nsys'],
                f_measure,
                precision,
                recall,
                eer,
                types=['str', 'int', 'int', 'float1_percentage', 'float1', 'float1', 'float1_percentage']
            ) + '\n'

        return output
def result_report_class_wise ( self ) : results = self . results_class_wise_metrics ( ) output = self . ui . section_header ( 'Class-wise metrics' , indent = 2 ) + '\n' output += self . ui . row ( 'Tag' , 'Nref' , 'Nsys' , 'F-score' , 'Pre' , 'Rec' , 'EER' , widths = [ 20 , 12 , 12 , 12 , 12 , 12 , 12 ] , separators = [ True , False , True , False , False , True , False ] , indent = 4 ) + '\n' output += self . ui . row ( '-' , '-' , '-' , '-' , '-' , '-' , '-' ) + '\n' for tag_label in self . tag_label_list : if results [ tag_label ] [ 'f_measure' ] [ 'f_measure' ] is not None : f_measure = results [ tag_label ] [ 'f_measure' ] [ 'f_measure' ] * 100 else : f_measure = None if results [ tag_label ] [ 'f_measure' ] [ 'precision' ] is not None : precision = results [ tag_label ] [ 'f_measure' ] [ 'precision' ] * 100 else : precision = None if results [ tag_label ] [ 'f_measure' ] [ 'recall' ] is not None : recall = results [ tag_label ] [ 'f_measure' ] [ 'recall' ] * 100 else : recall = None if results [ tag_label ] [ 'eer' ] [ 'eer' ] is not None : eer = results [ tag_label ] [ 'eer' ] [ 'eer' ] * 100 else : eer = None output += self . ui . row ( tag_label , results [ tag_label ] [ 'count' ] [ 'Nref' ] , results [ tag_label ] [ 'count' ] [ 'Nsys' ] , f_measure , precision , recall , eer , types = [ 'str' , 'int' , 'int' , 'float1_percentage' , 'float1' , 'float1' , 'float1_percentage' ] ) + '\n' return output
Report class-wise results

        Returns
        -------
        str
            result report in string format