edu.cmu.minorthird.classify
Interface Splitter<T>

All Known Implementing Classes:
CrossValSplitter, FixedTestSetSplitter, LeaveOneOutSplitter, RandomSplitter, SimpleRandomSplitter, StratifiedCrossValSplitter, SubsamplingCrossValSplitter, WebmasterSplitter

public interface Splitter<T>

Split iterators into train/test partitions.

Author:
William Cohen

Method Summary
 int getNumPartitions()
          Return the number of partitions produced by the last call to split()
 java.util.Iterator<T> getTest(int k)
          Return an iterator over the test cases in the k-th split.
 java.util.Iterator<T> getTrain(int k)
          Return an iterator over the training cases in the k-th split.
 void split(java.util.Iterator<T> i)
          Split the iterator into a number of train/test partitions.
 

Method Detail

split

void split(java.util.Iterator<T> i)
Split the iterator into a number of train/test partitions.


getNumPartitions

int getNumPartitions()
Return the number of partitions produced by the last call to split()


getTrain

java.util.Iterator<T> getTrain(int k)
Return an iterator over the training cases in the k-th split.


getTest

java.util.Iterator<T> getTest(int k)
Return an iterator over the test cases in the k-th split.