|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLBJ2.parse.FoldParser.SplitStrategy
public static class FoldParser.SplitStrategy
Immutable type representing the way in which examples are partitioned
into folds. When LBJ's self imposed restriction to use Java 1.4 is
lifted, this class will be replaced by an enum.
The four implemented splitting strategies are described below. Note that in all cases except "Manual", the size of the folds are as equal as possible, with any extra examples allocated to earlier folds.
- Sequential
- The examples are simply partitioned into sequential folds.
- kth
- Every kth example is in the same fold.
- Random
- Examples are randomly assigned to folds.
- Manual
- Same as sequential, except fold boundaries are indicated by an appearance of the
FoldSeparatorin place of an example object.
| Field Summary | |
|---|---|
private int |
index
Can be used to index the names array. |
static FoldParser.SplitStrategy |
kth
Represents the split strategy in which every kth example is part of the same fold. |
static FoldParser.SplitStrategy |
manual
Represents the split strategy in which the user manually inserts fold separation objects. |
private static java.lang.String[] |
names
The names of the different split strategies as strings. |
static FoldParser.SplitStrategy |
random
Represents the random split strategy. |
static FoldParser.SplitStrategy |
sequential
Represents the sequential split strategy. |
| Constructor Summary | |
|---|---|
private |
FoldParser.SplitStrategy(int i)
Initializes the object with an index. |
| Method Summary | |
|---|---|
java.lang.String |
getName()
Retrieves the name of the strategy represented by this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final FoldParser.SplitStrategy random
public static final FoldParser.SplitStrategy sequential
public static final FoldParser.SplitStrategy kth
public static final FoldParser.SplitStrategy manual
private static final java.lang.String[] names
private int index
names array.
| Constructor Detail |
|---|
private FoldParser.SplitStrategy(int i)
| Method Detail |
|---|
public java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||