Class AbstractWekaRepeatedCrossValidationOutput<T>

  • Type Parameters:
    T - the output that is being generated
    All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.QuickInfoSupporter, adams.core.SizeOfHandler, Serializable
    Direct Known Subclasses:
    Predictions, SamplePlot, Statistics

    public abstract class AbstractWekaRepeatedCrossValidationOutput<T>
    extends adams.core.option.AbstractOptionHandler
    implements adams.core.QuickInfoSupporter
    Ancestor for classes that generate output from repeated cross-validations.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • AbstractWekaRepeatedCrossValidationOutput

        public AbstractWekaRepeatedCrossValidationOutput()
    • Method Detail

      • generates

        public abstract Class generates()
        Returns the class that it generates.
        Returns:
        the class
      • getQuickInfo

        public String getQuickInfo()
        Returns a quick info about the object, which can be displayed in the GUI.
        The default implementation returns null.
        Specified by:
        getQuickInfo in interface adams.core.QuickInfoSupporter
        Returns:
        null if no info available, otherwise short string
      • handles

        public abstract String handles​(WekaEvaluationContainer[] conts)
        Checks whether the cross-validation results can be processed.
        Parameters:
        conts - the containers to check
        Returns:
        null if the data can be processed, otherwise an error message
      • doGenerateOutput

        protected abstract T doGenerateOutput​(WekaEvaluationContainer[] conts)
        Generates the data.
        Parameters:
        conts - the containers to process
        Returns:
        the generated data
      • generateOutput

        public T generateOutput​(WekaEvaluationContainer[] conts)
        Generates the data.
        Parameters:
        conts - the containers to process
        Returns:
        the generated data