Interface RandomSplitGenerator

    • Method Detail

      • setPercentage

        void setPercentage​(double value)
        Sets the split percentage.
        Specified by:
        setPercentage in interface adams.data.splitgenerator.RandomSplitGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Parameters:
        value - the percentage (0-1)
      • getPercentage

        double getPercentage()
        Returns the split percentage.
        Specified by:
        getPercentage in interface adams.data.splitgenerator.RandomSplitGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Returns:
        the percentage (0-1)
      • setPreserveOrder

        void setPreserveOrder​(boolean value)
        Sets whether to preserve the order.
        Specified by:
        setPreserveOrder in interface adams.data.splitgenerator.RandomSplitGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Parameters:
        value - true if to preserve order
      • getPreserveOrder

        boolean getPreserveOrder()
        Returns whether to preserve the order.
        Specified by:
        getPreserveOrder in interface adams.data.splitgenerator.RandomSplitGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Returns:
        true if to preserve order