Class ResultItem

    • Field Detail

      • m_AttributeSelection

        protected weka.attributeSelection.AttributeSelection m_AttributeSelection
        the attsel object.
      • m_Search

        protected weka.attributeSelection.ASSearch m_Search
        the search algorithm.
      • m_Evaluator

        protected weka.attributeSelection.ASEvaluation m_Evaluator
        the evaluation algorithm.
      • m_Folds

        protected int m_Folds
        the number of folds (in case of cross-validation).
      • m_Full

        protected weka.core.Instances m_Full
        the full dataset.
      • m_RunInformation

        protected MetaData m_RunInformation
        the run information.
    • Constructor Detail

      • ResultItem

        public ResultItem​(weka.attributeSelection.ASEvaluation evaluator,
                          weka.attributeSelection.ASSearch search,
                          weka.core.Instances header)
        Initializes the item.
        Parameters:
        evaluator - the evaluation algorithm
        search - the search algorithm
        header - the header of the training set
    • Method Detail

      • update

        public void update​(weka.attributeSelection.AttributeSelection attsel,
                           weka.core.Instances full,
                           MetaData runInfo)
        Updates the item.
        Parameters:
        attsel - the attribute selection
        full - the full dataset
        runInfo - the run information, can be null
      • update

        public void update​(weka.attributeSelection.AttributeSelection attsel,
                           int folds,
                           MetaData runInfo)
        Updates the item.
        Parameters:
        attsel - the attribute selection
        folds - the number of folds, ignored if < 2
        runInfo - the run information, can be null
      • update

        protected void update​(weka.attributeSelection.AttributeSelection attsel,
                              int folds,
                              weka.core.Instances full,
                              MetaData runInfo)
        Updates the item.
        Parameters:
        attsel - the attribute selection
        folds - the number of folds, ignored if < 2
        full - the full dataset, can be null in case of cross-validation
        runInfo - the run information, can be null
      • getAttributeSelection

        public weka.attributeSelection.AttributeSelection getAttributeSelection()
        Returns the stored AttributeSelection object.
        Returns:
        the attsel, null if not present
      • getSearch

        public weka.attributeSelection.ASSearch getSearch()
        Returns the stored search object.
        Returns:
        the search, null if not present
      • getEvaluator

        public weka.attributeSelection.ASEvaluation getEvaluator()
        Returns the stored evaluator object.
        Returns:
        the evaluator, null if not present
      • isCrossValidation

        public boolean isCrossValidation()
        Returns whether cross-valiation was used.
        Returns:
        true if cross-validation
      • getFolds

        public int getFolds()
        Returns the number of folds.
        Returns:
        the number of folds
      • hasFull

        public boolean hasFull()
        Checks whether a full dataset is present.
        Returns:
        true if available
      • getFull

        public weka.core.Instances getFull()
        Returns the full dataset if present.
        Returns:
        the dataset, null if not available
      • hasRunInformation

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

        public 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