def result_report_class_wise_average(self):
        """Report class-wise averages

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

        """

        results = self.results_class_wise_average_metrics()

        output = self.ui.section_header('Class-wise average metrics (macro-average)', indent=2) + '\n'

        if 'f_measure' in results and results['f_measure']:
            if results['f_measure']['f_measure'] is not None:
                f_measure = results['f_measure']['f_measure'] * 100

            else:
                f_measure = None

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

            else:
                precision = None

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

            else:
                recall = None

            output += self.ui.line('F-measure', indent=2) + '\n'
            output += self.ui.data(field='F-measure (F1)', value=f_measure, unit='%', indent=4) + '\n'
            output += self.ui.data(field='Precision', value=precision, unit='%', indent=4) + '\n'
            output += self.ui.data(field='Recall', value=recall, unit='%', indent=4) + '\n'

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

            else:
                eer = None

            output += self.ui.line('Equal error rate', indent=2) + '\n'
            output += self.ui.data(field='Equal error rate (EER)', value=eer, unit='%', indent=4) + '\n'

        return output
Report class-wise averages

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