Interface SplitGenerator

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      weka.core.Instances getData()
      Returns the original data.
      boolean hasNext()
      Returns true if the iteration has more elements.
      void initializeIterator()
      Initializes the iterator (gets implicitly called, when calling next()).
      WekaTrainTestSetContainer next()
      Returns the next element in the iteration.
      void remove()
      Unsupported.
      void setData​(weka.core.Instances value)
      Sets the original data.
      String toString()
      Returns a short description of the generator.
      • Methods inherited from interface adams.core.Destroyable

        destroy
      • Methods inherited from interface adams.core.option.OptionHandler

        cleanUpOptions, defineOptions, getOptionManager, toCommandLine
      • Methods inherited from interface adams.core.Randomizable

        getSeed, seedTipText, setSeed
    • Method Detail

      • setData

        void setData​(weka.core.Instances value)
        Sets the original data.
        Specified by:
        setData in interface adams.data.splitgenerator.SplitGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Parameters:
        value - the data
      • getData

        weka.core.Instances getData()
        Returns the original data.
        Specified by:
        getData in interface adams.data.splitgenerator.SplitGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Returns:
        the data
      • initializeIterator

        void initializeIterator()
        Initializes the iterator (gets implicitly called, when calling next()).
        Specified by:
        initializeIterator in interface adams.data.splitgenerator.SplitGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
      • hasNext

        boolean hasNext()
        Returns true if the iteration has more elements. (In other words, returns true if next would return an element rather than throwing an exception.)
        Specified by:
        hasNext in interface Iterator<WekaTrainTestSetContainer>
        Specified by:
        hasNext in interface adams.data.splitgenerator.SplitGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Returns:
        true if the iterator has more elements.
      • toString

        String toString()
        Returns a short description of the generator.
        Specified by:
        toString in interface adams.data.splitgenerator.SplitGenerator<weka.core.Instances,​WekaTrainTestSetContainer>
        Overrides:
        toString in class Object
        Returns:
        a short description