Class RowFilteredColumnFinder

  • All Implemented Interfaces:
    adams.core.Destroyable, adams.core.GlobalInfoSupporter, adams.core.logging.LoggingLevelHandler, adams.core.logging.LoggingSupporter, adams.core.option.OptionHandler, adams.core.ShallowCopySupporter<ColumnFinder>, adams.core.SizeOfHandler, ColumnFinder, TrainableColumnFinder, Serializable

    public class RowFilteredColumnFinder
    extends AbstractFilteredColumnFinder
    This column finder first filters the rows before finding any columns on the subset of rows.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_RowFinder

        protected RowFinder m_RowFinder
        the RowFinder to use first.
      • m_ColumnFinderTrained

        protected boolean m_ColumnFinderTrained
        whether the column finder was trained on the subset.
    • Constructor Detail

      • RowFilteredColumnFinder

        public RowFilteredColumnFinder()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the object.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class adams.core.option.AbstractOptionHandler
        Returns:
        a description suitable for displaying in the gui
      • 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 AbstractFilteredColumnFinder
      • setRowFinder

        public void setRowFinder​(RowFinder value)
        Sets the row finder to use.
        Parameters:
        value - the row finder
      • getRowFinder

        public RowFinder getRowFinder()
        Returns the row finder in use.
        Returns:
        the row finder
      • rowFinderTipText

        public String rowFinderTipText()
        Returns the tip text for this property.
        Returns:
        tip text for this property suitable for displaying in the gui
      • doTrainColumnFinder

        protected boolean doTrainColumnFinder​(weka.core.Instances data)
        Performs the actual training of the column finder with the specified dataset.
        Overrides:
        doTrainColumnFinder in class AbstractFilteredColumnFinder
        Parameters:
        data - the training data
        Returns:
        true if successfully trained
      • doFindColumns

        protected int[] doFindColumns​(weka.core.Instances data)
        Returns the columns of interest in the dataset.
        Specified by:
        doFindColumns in class AbstractColumnFinder
        Parameters:
        data - the dataset to inspect
        Returns:
        the columns of interest