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,
                                                             BinningAlgorithm algorithm,
                                                             long seed,
                                                             double percentage,
                                                             BaseRegExp regExp,
                                                             String group)
        Initializes the generator. Does not preserve the order.
        Parameters:
        data - the dataset to split
        algorithm - the algorithm to use
        seed - the seed value to use for randomization
        percentage - the percentage of the training set (0-1)
        regExp - the regular expression to apply to the attribute values
        group - the regexp group to use as group
      • GroupedBinnedNumericClassRandomSplitGenerator

        public GroupedBinnedNumericClassRandomSplitGenerator​(weka.core.Instances data,
                                                             BinningAlgorithm algorithm,
                                                             double percentage,
                                                             BaseRegExp regExp,
                                                             String group)
        Initializes the generator. Preserves the order.
        Parameters:
        data - the dataset to split
        algorithm - the algorithm to use
        percentage - the percentage of the training set (0-1)
        regExp - the regular expression to apply to the attribute values
        group - the regexp group to use as group
      • GroupedBinnedNumericClassRandomSplitGenerator

        public GroupedBinnedNumericClassRandomSplitGenerator​(weka.core.Instances data,
                                                             BinningAlgorithm algorithm,
                                                             long seed,
                                                             double percentage,
                                                             boolean preserveOrder,
                                                             BaseRegExp regExp,
                                                             String group)
        Initializes the generator. Does not preserve the order.
        Parameters:
        data - the dataset to split
        algorithm - the algorithm to use
        seed - the seed value to use for randomization
        percentage - the percentage of the training set (0-1)
        preserveOrder - whether to preserve the order
        regExp - the regular expression to apply to the attribute values
        group - the regexp group to use as group