Class AbstractNearestNeighborBasedEvaluator

    • Field Detail

      • m_Search

        protected weka.core.neighboursearch.NearestNeighbourSearch m_Search
        the nearest neighbor algorithm to use.
      • m_ActualSearch

        protected weka.core.neighboursearch.NearestNeighbourSearch m_ActualSearch
        the actual nearest neighbor algorithm in use.
      • m_TrainingData

        protected weka.core.Instances m_TrainingData
        the training data.
      • m_Header

        protected weka.core.Instances m_Header
        the header of the training data.
    • Constructor Detail

      • AbstractNearestNeighborBasedEvaluator

        public AbstractNearestNeighborBasedEvaluator()
    • Method Detail

      • 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 AbstractSerializableEvaluator
      • getDefaultSearch

        protected abstract weka.core.neighboursearch.NearestNeighbourSearch getDefaultSearch()
        Returns the default search algorithm to use.
        Returns:
        the default
      • setSearch

        public void setSearch​(weka.core.neighboursearch.NearestNeighbourSearch value)
        Sets the nearest neighbor search algorithm.
        Parameters:
        value - the algorithm
      • getSearch

        public weka.core.neighboursearch.NearestNeighbourSearch getSearch()
        Returns the nearest neighbor search algorithm.
        Returns:
        the algorithm
      • searchTipText

        public String searchTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the explorer/experimenter gui
      • getDefaultMissingEvaluation

        protected float getDefaultMissingEvaluation()
        Returns the default value in case of missing evaluations.
        Specified by:
        getDefaultMissingEvaluation in class AbstractEvaluator
        Returns:
        the default value
      • initSearch

        protected boolean initSearch​(weka.core.Instances data)
        Initializes the search algorithm.
        Parameters:
        data - the data to initialize the search with
        Returns:
        true if successfully initialized
      • initSerializationSetup

        public void initSerializationSetup()
        Regenerates all the objects that are necessary for serialization.
      • cleanUp

        public void cleanUp()
        Cleans up data structures, frees up memory.