code: public double calculateAverageAUCPR() {
          double sum = 0.0;
          for (int i = 0; i < underlying.length; i++) {
              sum += calculateAUCPR(i);
          }
  
          return sum / underlying.length;
      }
docs: Calculate the macro-average (one-vs-all) AUCPR (area under precision recall curve) for all classes