Class GroupedBinnedNumericClassRandomSplitGenerator

    • Field Detail

      • m_Percentage

        protected double m_Percentage
        the percentage.
      • m_PreserveOrder

        protected boolean m_PreserveOrder
        whether to preserve the order.
      • m_RegExp

        protected BaseRegExp m_RegExp
        the regular expression for the nominal/string attribute.
      • m_Group

        protected String m_Group
        the group expression.
      • m_Generated

        protected boolean m_Generated
        whether the split was generated.
    • Constructor Detail

      • GroupedBinnedNumericClassRandomSplitGenerator

        public GroupedBinnedNumericClassRandomSplitGenerator()
        Initializes the generator.
      • GroupedBinnedNumericClassRandomSplitGenerator

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

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

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