Class IndividualRows

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

    public class IndividualRows
    extends AbstractRowSelection
    Just selects each row by itself.
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Constructor Detail

      • IndividualRows

        public IndividualRows()
    • Method Detail

      • globalInfo

        public String globalInfo()
        Returns a string describing the row selection scheme.
        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
      • doSelectRows

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