|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.minorthird.classify.experiments.FixedTestSetSplitter<T>
public class FixedTestSetSplitter<T>
Provides exactly one 'split', between the entire set given, and a fixed designated test set.
| Constructor Summary | |
|---|---|
FixedTestSetSplitter(java.util.Iterator<T> testIterator)
|
|
| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FixedTestSetSplitter(java.util.Iterator<T> testIterator)
| Method Detail |
|---|
public void split(java.util.Iterator<T> i)
Splitter
split in interface Splitter<T>public int getNumPartitions()
Splitter
getNumPartitions in interface Splitter<T>public java.util.Iterator<T> getTrain(int k)
Splitter
getTrain in interface Splitter<T>public java.util.Iterator<T> getTest(int k)
Splitter
getTest in interface Splitter<T>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||