Class UpdateStackingNumFolds

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.ShallowCopySupporter<adams.flow.processor.ActorProcessor>, adams.core.SizeOfHandler, adams.flow.processor.ActorProcessor, adams.flow.processor.ModifyingProcessor, Serializable, Comparable<adams.flow.processor.ActorProcessor>

    public class UpdateStackingNumFolds
    extends adams.flow.processor.AbstractModifyingProcessor
    Updates the number of cross-validation folds by Stacking to the supplied value.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected int m_NumFolds
      the number of folds to use.
      • Fields inherited from class adams.flow.processor.AbstractModifyingProcessor

        m_Modified, m_ModifiedActor, m_NoCopy
      • Fields inherited from class adams.flow.processor.AbstractActorProcessor

        m_Errors
      • Fields inherited from class adams.core.option.AbstractOptionHandler

        m_OptionManager
      • Fields inherited from class adams.core.logging.LoggingObject

        m_Logger, m_LoggingIsEnabled, m_LoggingLevel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void defineOptions()
      Adds options to the internal list of options.
      int getNumFolds()
      Returns the number of folds to use.
      String globalInfo()
      Returns a string describing the object.
      String numFoldsTipText()
      Returns the tip text for this property.
      protected void processActor​(adams.flow.core.Actor actor)
      Performs the actual processing.
      void setNumFolds​(int value)
      Sets the number of folds to use.
      • Methods inherited from class adams.flow.processor.AbstractModifyingProcessor

        getModifiedActor, getNoCopy, initialize, isModified, process, setNoCopy
      • Methods inherited from class adams.flow.processor.AbstractActorProcessor

        addError, addError, checkData, compareTo, equals, getErrors, hasErrors, reset, shallowCopy, shallowCopy
      • Methods inherited from class adams.core.option.AbstractOptionHandler

        cleanUpOptions, destroy, finishInit, getDefaultLoggingLevel, getOptionManager, loggingLevelTipText, newOptionManager, setLoggingLevel, toCommandLine, toString
      • Methods inherited from class adams.core.logging.LoggingObject

        configureLogger, getLogger, getLoggingLevel, initializeLogging, isLoggingEnabled, sizeOf
      • Methods inherited from interface adams.flow.processor.ActorProcessor

        compareTo, getErrors, hasErrors, shallowCopy, shallowCopy
      • Methods inherited from interface adams.core.Destroyable

        destroy
      • Methods inherited from interface adams.core.logging.LoggingLevelHandler

        getLoggingLevel
      • Methods inherited from interface adams.core.option.OptionHandler

        cleanUpOptions, getOptionManager, toCommandLine
    • Field Detail

      • m_NumFolds

        protected int m_NumFolds
        the number of folds to use.
    • Constructor Detail

      • UpdateStackingNumFolds

        public UpdateStackingNumFolds()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • defineOptions

        public void defineOptions()
        Adds options to the internal list of options.
        Specified by:
        defineOptions in interface adams.core.option.OptionHandler
        Overrides:
        defineOptions in class adams.core.option.AbstractOptionHandler
      • setNumFolds

        public void setNumFolds​(int value)
        Sets the number of folds to use.
        Parameters:
        value - number of folds
      • getNumFolds

        public int getNumFolds()
        Returns the number of folds to use.
        Returns:
        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.
      • processActor

        protected void processActor​(adams.flow.core.Actor actor)
        Performs the actual processing.
        Specified by:
        processActor in class adams.flow.processor.AbstractActorProcessor
        Parameters:
        actor - the actor to process (is a copy of original for processors implementing ModifyingProcessor)
        See Also:
        ModifyingProcessor