code: public List<Prediction> getPredictions(int actualClass, int predictedClass) {
          if (confusionMatrixMetaData == null)
              return null;
  
          List<Prediction> out = new ArrayList<>();
          List<Object> list = confusionMatrixMetaData.get(new Pair<>(actualClass, predictedClass));
          if (list == null)
              return out;
  
          for (Object meta : list) {
              out.add(new Prediction(actualClass, predictedClass, meta));
          }
          return out;
      }
docs: Get a list of predictions in the specified confusion matrix entry (i.e., for the given actua/predicted class pair)
  
  @param actualClass    Actual class
  @param predictedClass Predicted class
  @return List of predictions that match the specified actual/predicted classes, or null if the "evaluate with metadata" method was not used