docs: def results_class_wise_average_metrics(self):
          """Class-wise averaged metrics
  
          Returns
          -------
          dict
              results in a dictionary format
  
          """
  
          event_wise_results = self.results_class_wise_metrics()
  
          event_wise_f_measure = []
          event_wise_precision = []
          event_wise_recall = []
          
          event_wise_error_rate = []
          event_wise_deletion_rate = []
          event_wise_insertion_rate = []
          
          event_wise_sensitivity = []
          event_wise_specificity = []
          event_wise_balanced_accuracy = []
          event_wise_accuracy = []
  
          for event_label in event_wise_results:
              # F-measure
              event_wise_f_measure.append(event_wise_results[event_label]['f_measure']['f_measure'])
              event_wise_precision.append(event_wise_results[event_label]['f_measure']['precision'])
              event_wise_recall.append(event_wise_results[event_label]['f_measure']['recall'])
              
              # Error rate
              event_wise_error_rate.append(event_wise_results[event_label]['error_rate']['error_rate'])
              event_wise_deletion_rate.append(event_wise_results[event_label]['error_rate']['deletion_rate'])
              event_wise_insertion_rate.append(event_wise_results[event_label]['error_rate']['insertion_rate'])
  
              # Accuracy
              if 'sensitivity' in event_wise_results[event_label]['accuracy']:
                  event_wise_sensitivity.append(event_wise_results[event_label]['accuracy']['sensitivity'])
  
              if 'specificity' in event_wise_results[event_label]['accuracy']:
                  event_wise_specificity.append(event_wise_results[event_label]['accuracy']['specificity'])
  
              if 'balanced_accuracy' in event_wise_results[event_label]['accuracy']:
                  event_wise_balanced_accuracy.append(event_wise_results[event_label]['accuracy']['balanced_accuracy'])
  
              if 'accuracy' in event_wise_results[event_label]['accuracy']:
                  event_wise_accuracy.append(event_wise_results[event_label]['accuracy']['accuracy'])
  
          if event_wise_f_measure:
              event_wise_f_measure_dict = {
                  'f_measure': float(numpy.nanmean(event_wise_f_measure)),
                  'precision': float(numpy.nanmean(event_wise_precision)),
                  'recall': float(numpy.nanmean(event_wise_recall))
              }
  
          else:
              event_wise_f_measure_dict = {}
  
          if event_wise_error_rate:
              event_wise_error_rate_dict = {
                  'error_rate': float(numpy.nanmean(event_wise_error_rate)),
                  'deletion_rate': float(numpy.nanmean(event_wise_deletion_rate)),
                  'insertion_rate': float(numpy.nanmean(event_wise_insertion_rate))
              }
  
          else:
              event_wise_error_rate_dict = {}
  
          if event_wise_accuracy:
              event_wise_accuracy_dict = {
                  'sensitivity': float(numpy.nanmean(event_wise_sensitivity)),
                  'specificity': float(numpy.nanmean(event_wise_specificity)),
                  'balanced_accuracy': float(numpy.nanmean(event_wise_balanced_accuracy)),
                  'accuracy': float(numpy.nanmean(event_wise_accuracy))
              }
  
          else:
              event_wise_accuracy_dict = {}
  
          return {
              'f_measure': event_wise_f_measure_dict,
              'error_rate': event_wise_error_rate_dict,
              'accuracy': event_wise_accuracy_dict
          }