code: def distributions_for_instances(self, data):
          
          if self.is_batchpredictor:
              return typeconv.double_matrix_to_ndarray(self.__distributions(data.jobject))
          else:
              return None
docs: Peforms predictions, returning the class distributions.
  
          :param data: the Instances to get the class distributions for
          :type data: Instances
          :return: the class distribution matrix, None if not a batch predictor
          :rtype: ndarray