Class GroupedBinnedNumericClassCrossValidationFoldGenerator

    • Field Detail

      • m_NumFolds

        protected int m_NumFolds
        the number of folds.
      • m_Stratify

        protected boolean m_Stratify
        whether to stratify the data (in case of nominal class).
      • m_CurrentFold

        protected transient int m_CurrentFold
        the current fold.
      • m_RelationName

        protected String m_RelationName
        the template for the relation name.
      • m_Randomize

        protected boolean m_Randomize
        whether to randomize the data.
      • m_RegExp

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

        protected String m_Group
        the group expression.
      • m_FoldPairs

        protected transient List<FoldPair<Binnable<weka.core.Instance>>> m_FoldPairs
        the temporary pairs.
    • Constructor Detail

      • GroupedBinnedNumericClassCrossValidationFoldGenerator

        public GroupedBinnedNumericClassCrossValidationFoldGenerator()
        Initializes the generator.
      • GroupedBinnedNumericClassCrossValidationFoldGenerator

        public GroupedBinnedNumericClassCrossValidationFoldGenerator​(weka.core.Instances data,
                                                                     int numFolds,
                                                                     long seed,
                                                                     boolean stratify)
        Initializes the generator.
        Parameters:
        data - the full dataset
        numFolds - the number of folds, leave-one-out if less than 2
        seed - the seed for randomization
        stratify - whether to perform stratified CV
      • GroupedBinnedNumericClassCrossValidationFoldGenerator

        public GroupedBinnedNumericClassCrossValidationFoldGenerator​(weka.core.Instances data,
                                                                     int numFolds,
                                                                     long seed,
                                                                     boolean randomize,
                                                                     boolean stratify,
                                                                     String relName)
        Initializes the generator.
        Parameters:
        data - the full dataset
        numFolds - the number of folds, leave-one-out if less than 2
        seed - the seed value
        randomize - whether to randomize the data
        stratify - whether to perform stratified CV
        relName - the relation name template, use null to ignore