|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.minorthird.classify.experiments.SimpleRandomSplitter<T>
public class SimpleRandomSplitter<T>
Split into one train, one test partition. Ignores subpopulation information.
| Constructor Summary | |
|---|---|
SimpleRandomSplitter()
|
|
SimpleRandomSplitter(double trainFraction)
|
|
SimpleRandomSplitter(java.util.Random random,
double trainFraction)
|
|
| 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 SimpleRandomSplitter(java.util.Random random,
double trainFraction)
public SimpleRandomSplitter(double trainFraction)
public SimpleRandomSplitter()
| 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 | ||||||||