|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.cmu.minorthird.classify.experiments.LeaveOneOutSplitter<T>
public class LeaveOneOutSplitter<T>
Do N-fold cross-validation, where N is the number of different subpopulations.
| Constructor Summary | |
|---|---|
LeaveOneOutSplitter()
|
|
LeaveOneOutSplitter(java.util.Random random)
|
|
| 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. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public LeaveOneOutSplitter(java.util.Random random)
public LeaveOneOutSplitter()
| 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>public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||