Class AbstractRowSelection

    • Constructor Detail

      • AbstractRowSelection

        public AbstractRowSelection()
    • Method Detail

      • check

        protected String check​(weka.core.Instances data)
        Hook method for performing checks.
        Parameters:
        data - the data to check
        Returns:
        null if checks passed, otherwise error message
      • doSelectRows

        protected abstract List<int[]> doSelectRows​(weka.core.Instances data)
                                             throws Exception
        Returns the list of row indices generated from the data.
        Parameters:
        data - the data to generate row selections from
        Returns:
        the list of selections
        Throws:
        Exception - if checks or selection failed
      • selectRows

        public List<int[]> selectRows​(weka.core.Instances data)
                               throws Exception
        Returns the list of row indices generated from the data.
        Parameters:
        data - the data to generate row selections from
        Returns:
        the list of selections
        Throws:
        Exception - if checks or selection failed