Class RandomSplitGenerator

    • Field Detail

      • m_Randomization

        protected Randomization m_Randomization
        the randomization scheme.
      • m_Splitter

        protected Splitter m_Splitter
        the splitter scheme.
    • Constructor Detail

      • RandomSplitGenerator

        public RandomSplitGenerator()
        Initializes the cross-validation.
    • Method Detail

      • reset

        public void reset()
        Resets the scheme.
      • setRandomization

        public void setRandomization​(Randomization value)
        Sets the randomization scheme to use.
        Parameters:
        value - the scheme
      • getRandomization

        public Randomization getRandomization()
        Returns the randomization scheme in use.
        Returns:
        the scheme
      • setSplitter

        public void setSplitter​(Splitter value)
        Sets the splitter scheme to use.
        Parameters:
        value - the scheme
      • getSplitter

        public Splitter getSplitter()
        Returns the splitter scheme in use.
        Returns:
        the scheme
      • generate

        public <T> SplitPair<Binnable<T>> generate​(List<Binnable<T>> data)
        Generates the split. Temporarily adds the original index to the Binnable meta-data, using Wrapping.TMP_INDEX as key.
        Type Parameters:
        T - the payload type
        Parameters:
        data - the data to generate the pairs from
        Returns:
        the fold pairs