Class FoldPair<T>

    • Field Detail

      • m_Index

        protected int m_Index
        the index.
      • m_Train

        protected Subset<T> m_Train
        the training data.
      • m_Test

        protected Subset<T> m_Test
        the test data.
    • Constructor Detail

      • FoldPair

        public FoldPair​(int index,
                        Subset<T> train,
                        Subset<T> test)
        Initializes the fold pair.
        Parameters:
        index - the index
        train - the training data
        test - the test data
    • Method Detail

      • getIndex

        public int getIndex()
        Returns the index.
        Returns:
        the index
      • getTrain

        public Subset<T> getTrain()
        Returns the training data.
        Returns:
        the data
      • getTest

        public Subset<T> getTest()
        Returns the test data.
        Returns:
        the data
      • toString

        public String toString()
        Returns a short string representation.
        Overrides:
        toString in class Object
        Returns:
        the representation