docs: public double computeAverage (Function<Triple<GeneralDataset<L, F>,GeneralDataset<L, F>,SavedState>,Double> function) 
    {
      double sum = 0;
      Iterator<Triple<GeneralDataset<L, F>,GeneralDataset<L, F>,SavedState>> foldIt = iterator();
      while (foldIt.hasNext()) {
        sum += function.apply(foldIt.next());
      }
      return sum / kfold;
    }