Class AbstractSelectionProcessor

    • Constructor Detail

      • AbstractSelectionProcessor

        public AbstractSelectionProcessor()
    • Method Detail

      • generateOutputFormat

        public abstract weka.core.Instances generateOutputFormat​(weka.core.Instances data)
                                                          throws Exception
        Returns the format for the output data.
        Parameters:
        data - the input data
        Returns:
        the output format
        Throws:
        Exception - if fails to determine output format
      • check

        protected String check​(List<weka.core.Instance> rows)
        Hook method for performing checks.
        Parameters:
        rows - the data to check
        Returns:
        null if checks passed, otherwise error message
      • doProcessRows

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

        public List<weka.core.Instance> processRows​(List<weka.core.Instance> rows)
                                             throws Exception
        Returns the list of row indices generated from the data.
        Parameters:
        rows - the rows to process
        Throws:
        Exception - if checks or selection failed