Class BinnedNumericClassRandomSplitGenerator

    • 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.
    • Constructor Detail

      • BinnedNumericClassRandomSplitGenerator

        public BinnedNumericClassRandomSplitGenerator()
        Initializes the generator.
      • BinnedNumericClassRandomSplitGenerator

        public BinnedNumericClassRandomSplitGenerator​(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)
      • BinnedNumericClassRandomSplitGenerator

        public BinnedNumericClassRandomSplitGenerator​(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)
      • BinnedNumericClassRandomSplitGenerator

        public BinnedNumericClassRandomSplitGenerator​(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