Class PassThrough

  • All Implemented Interfaces:
    adams.core.GlobalInfoSupporter, Serializable, weka.core.OptionHandler

    public class PassThrough
    extends AbstractSelectionProcessor
    Just passes through the data.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • PassThrough

        public PassThrough()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the processor.
        Specified by:
        globalInfo in interface adams.core.GlobalInfoSupporter
        Specified by:
        globalInfo in class AbstractMultiRowProcessorPlugin
        Returns:
        a description suitable for displaying in the explorer/experimenter gui
      • generateOutputFormat

        public weka.core.Instances generateOutputFormat​(weka.core.Instances data)
                                                 throws Exception
        Returns the format for the output data.
        Specified by:
        generateOutputFormat in class AbstractSelectionProcessor
        Parameters:
        data - the input data
        Returns:
        the output format
        Throws:
        Exception - if fails to determine output format
      • doProcessRows

        protected List<weka.core.Instance> doProcessRows​(List<weka.core.Instance> rows)
                                                  throws Exception
        Returns the list of row indices generated from the data.
        Specified by:
        doProcessRows in class AbstractSelectionProcessor
        Parameters:
        rows - the rows to process
        Returns:
        the list of selections
        Throws:
        Exception - if checks or selection failed