Interface CrossValidationFoldGenerator

    • Method Detail

      • setNumFolds

        void setNumFolds​(int value)
        Sets the number of folds to use.
        Specified by:
        setNumFolds in interface adams.data.splitgenerator.CrossValidationFoldGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Parameters:
        value - the number of folds, less than 2 for LOO
      • getNumFolds

        int getNumFolds()
        Returns the number of folds.
        Specified by:
        getNumFolds in interface adams.data.splitgenerator.CrossValidationFoldGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Returns:
        the number of folds
      • getActualNumFolds

        int getActualNumFolds()
        Returns the actual number of folds used (eg when using LOO).
        Specified by:
        getActualNumFolds in interface adams.data.splitgenerator.CrossValidationFoldGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Returns:
        the actual number of folds
      • setRandomize

        void setRandomize​(boolean value)
        Sets whether to randomize the data.
        Specified by:
        setRandomize in interface adams.data.splitgenerator.CrossValidationFoldGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Parameters:
        value - true if to randomize the data
      • getRandomize

        boolean getRandomize()
        Returns whether to randomize the data.
        Specified by:
        getRandomize in interface adams.data.splitgenerator.CrossValidationFoldGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Returns:
        true if to randomize the data
      • setStratify

        void setStratify​(boolean value)
        Sets whether to stratify the data (nominal class).
        Specified by:
        setStratify in interface adams.data.splitgenerator.StratifiableSplitGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Parameters:
        value - whether to stratify the data (nominal class)
      • getStratify

        boolean getStratify()
        Returns whether to stratify the data (in case of nominal class).
        Specified by:
        getStratify in interface adams.data.splitgenerator.StratifiableSplitGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Returns:
        true if to stratify
      • setRelationName

        void setRelationName​(String value)
        Sets the template for the relation name.
        Parameters:
        value - the template
      • getRelationName

        String getRelationName()
        Returns the relation name template.
        Returns:
        the template
      • crossValidationIndices

        int[] crossValidationIndices()
        Returns the cross-validation indices.
        Specified by:
        crossValidationIndices in interface adams.data.splitgenerator.CrossValidationFoldGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Returns:
        the indices