Class DefaultRandomSplitGenerator

    • Field Detail

      • m_Percentage

        protected double m_Percentage
        the percentage.
      • m_PreserveOrder

        protected boolean m_PreserveOrder
        whether to preserve the order.
      • m_Generated

        protected boolean m_Generated
        whether the split was generated.
      • m_Generator

        protected RandomSplitGenerator m_Generator
        the underlying scheme for generating the split.
    • Constructor Detail

      • DefaultRandomSplitGenerator

        public DefaultRandomSplitGenerator()
        Initializes the generator.
      • DefaultRandomSplitGenerator

        public DefaultRandomSplitGenerator​(weka.core.Instances data,
                                           long seed,
                                           double percentage)
        Initializes the generator. Does not preserve the order.
        Parameters:
        data - the dataset to split
        seed - the seed value to use for randomization
        percentage - the percentage of the training set (0-1)
      • DefaultRandomSplitGenerator

        public DefaultRandomSplitGenerator​(weka.core.Instances data,
                                           double percentage)
        Initializes the generator. Preserves the order.
        Parameters:
        data - the dataset to split
        percentage - the percentage of the training set (0-1)
      • DefaultRandomSplitGenerator

        public DefaultRandomSplitGenerator​(weka.core.Instances data,
                                           long seed,
                                           double percentage,
                                           boolean preserveOrder)
        Initializes the generator. Does not preserve the order.
        Parameters:
        data - the dataset to split
        seed - the seed value to use for randomization
        percentage - the percentage of the training set (0-1)
        preserveOrder - whether to preserve the order