code: def predictions(self):
          
          preds = javabridge.get_collection_wrapper(
              javabridge.call(self.jobject, "predictions", "()Ljava/util/ArrayList;"))
          if self.discard_predictions:
              result = None
          else:
              result = []
              for pred in preds:
                  if is_instance_of(pred, "weka.classifiers.evaluation.NominalPrediction"):
                      result.append(NominalPrediction(pred))
                  elif is_instance_of(pred, "weka.classifiers.evaluation.NumericPrediction"):
                      result.append(NumericPrediction(pred))
                  else:
                      result.append(Prediction(pred))
          return result
docs: Returns the predictions.
  
          :return: the predictions. None if not available
          :rtype: list