Class ResultItem

  • All Implemented Interfaces:
    adams.core.CleanUpHandler, adams.core.logging.LoggingSupporter, adams.core.SizeOfHandler, Serializable

    public class ResultItem
    extends AbstractNestableResultItem
    Container for an experiment run. Used in the result history.
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Template

        protected weka.classifiers.Classifier m_Template
        the template.
      • m_RunInformation

        protected adams.data.spreadsheet.MetaData m_RunInformation
        the run information.
    • Constructor Detail

      • ResultItem

        public ResultItem​(weka.classifiers.Classifier template,
                          weka.core.Instances header)
        Initializes the item.
        Parameters:
        template - the template
        header - the header of the training set, can be null
    • Method Detail

      • update

        public void update​(WekaExperimentContainer experiment)
        Updates the item.
        Parameters:
        experiment - the experiment, can be null
      • update

        public void update​(WekaExperimentContainer experiment,
                           adams.data.spreadsheet.MetaData runInfo)
        Updates the item.
        Parameters:
        experiment - the evaluation, can be null
        runInfo - the meta-data for the run
      • hasExperiment

        public boolean hasExperiment()
        Returns whether an Evaluation object is present.
        Returns:
        true if available
      • getExperiment

        public WekaExperimentContainer getExperiment()
        Returns the stored Evaluation object.
        Returns:
        the evaluation, null if not present
      • getTemplate

        public weka.classifiers.Classifier getTemplate()
        Returns the stored template object.
        Returns:
        the template
      • hasRunInformation

        public boolean hasRunInformation()
        Returns whether run information is present.
        Returns:
        true if available
      • getRunInformation

        public adams.data.spreadsheet.MetaData getRunInformation()
        Returns the stored run information.
        Returns:
        the information, null if not present
      • toString

        public String toString()
        Returns a short description of the container.
        Specified by:
        toString in class AbstractResultItem
        Returns:
        the description