def dataset(self):
        """
        Returns the dataset that this instance belongs to.

        :return: the dataset or None if no dataset set
        :rtype: Instances
        """
        dataset = javabridge.call(self.jobject, "dataset", "()Lweka/core/Instances;")
        if dataset is None:
            return None
        else:
            return Instances(dataset)
def dataset ( self ) : dataset = javabridge . call ( self . jobject , "dataset" , "()Lweka/core/Instances;" ) if dataset is None : return None else : return Instances ( dataset )
Returns the dataset that this instance belongs to.

        :return: the dataset or None if no dataset set
        :rtype: Instances