Class ResultItem

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

    public class ResultItem
    extends AbstractResultItem
    Container for an evaluation, model, training set header. Used in the result history.
    Version:
    $Revision$
    Author:
    FracPete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Evaluation

        protected weka.associations.AssociatorEvaluation m_Evaluation
        the evaluation object.
      • m_Template

        protected weka.associations.Associator m_Template
        the template.
      • m_Model

        protected weka.associations.Associator m_Model
        the model.
      • m_RunInformation

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

      • ResultItem

        public ResultItem​(weka.associations.Associator 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​(weka.associations.AssociatorEvaluation evaluation,
                           weka.associations.Associator model,
                           adams.data.spreadsheet.MetaData runInfo)
        Updates the item.
        Parameters:
        evaluation - the evaluation, can be null
        model - the model, can be null
        runInfo - the run information, can be null
      • hasEvaluation

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

        public weka.associations.AssociatorEvaluation getEvaluation()
        Returns the stored Evaluation object.
        Returns:
        the evaluation, null if not present
      • getTemplate

        public weka.associations.Associator getTemplate()
        Returns the stored template object.
        Returns:
        the template, null if not present
      • hasModel

        public boolean hasModel()
        Returns whether an model object is present.
        Returns:
        true if available
      • getModel

        public weka.associations.Associator getModel()
        Returns the stored model object.
        Returns:
        the model, null if not present
      • 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