code: def reduce_dimensionality(self, data):
          
          if type(data) is Instance:
              return Instance(
                  javabridge.call(
                      self.jobject, "reduceDimensionality",
                      "(Lweka/core/Instance;)Lweka/core/Instance;", data.jobject))
          else:
              return Instances(
                  javabridge.call(
                      self.jobject, "reduceDimensionality",
                      "(Lweka/core/Instances;)Lweka/core/Instances;", data.jobject))
docs: Reduces the dimensionality of the provided Instance or Instances object.
  
          :param data: the data to process
          :type data: Instances
          :return: the reduced dataset
          :rtype: Instances