Interface CrossValidationFoldGenerator<I,​O>

    • Method Detail

      • setNumFolds

        void setNumFolds​(int value)
        Sets the number of folds to use.
        Parameters:
        value - the number of folds, less than 2 for LOO
      • getNumFolds

        int getNumFolds()
        Returns the number of folds.
        Returns:
        the number of folds
      • getActualNumFolds

        int getActualNumFolds()
        Returns the actual number of folds used (eg when using LOO).
        Returns:
        the actual number of folds
      • setRandomize

        void setRandomize​(boolean value)
        Sets whether to randomize the data.
        Parameters:
        value - true if to randomize the data
      • getRandomize

        boolean getRandomize()
        Returns whether to randomize the data.
        Returns:
        true if to randomize the data
      • crossValidationIndices

        int[] crossValidationIndices()
        Returns the cross-validation indices.
        Returns:
        the indices