Class CrossValidation

    • Field Detail

      • m_NumFolds

        protected int m_NumFolds
        the number of folds.
      • m_ActualNumFolds

        protected int m_ActualNumFolds
        the actual number of folds.
      • m_Randomize

        protected boolean m_Randomize
        whether to randomize the data.
    • Constructor Detail

      • CrossValidation

        public CrossValidation()
    • Method Detail

      • setNumFolds

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

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

        public String numFoldsTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.
      • getActualNumFolds

        public int getActualNumFolds()
        Returns the actual number of folds used (eg when using LOO).
        Returns:
        the actual number of folds, -1 if not yet calculated
      • setRandomize

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

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

        public String randomizeTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the GUI or for listing the options.