|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.flow.container.AbstractContainer
adams.flow.container.WekaTrainTestSetContainer
public class WekaTrainTestSetContainer
A container for storing train and test set.
Optionally, random seed, fold number and fold count can be stored as well.
| Field Summary | |
|---|---|
static String |
VALUE_FOLD_COUNT
the identifier for the fold count. |
static String |
VALUE_FOLD_NUMBER
the identifier for the fold number. |
static String |
VALUE_SEED
the identifier for the random seed. |
static String |
VALUE_TEST
the identifier for the test data. |
static String |
VALUE_TRAIN
the identifier for the training data. |
| Fields inherited from class adams.flow.container.AbstractContainer |
|---|
m_AdditionalNames, m_Values |
| Constructor Summary | |
|---|---|
WekaTrainTestSetContainer()
Initializes the container. |
|
WekaTrainTestSetContainer(weka.core.Instances train,
weka.core.Instances test)
Initializes the container. |
|
WekaTrainTestSetContainer(weka.core.Instances train,
weka.core.Instances test,
Long seed)
Initializes the container. |
|
WekaTrainTestSetContainer(weka.core.Instances train,
weka.core.Instances test,
Long seed,
Integer foldNumber,
Integer foldCount)
Initializes the container. |
|
| Method Summary | |
|---|---|
boolean |
isValid()
Checks whether the setup of the container is valid. |
Enumeration<String> |
names()
Returns all value names that can be used (theoretically). |
| Methods inherited from class adams.flow.container.AbstractContainer |
|---|
addAdditionalName, checkDefaultConstructor, getClone, getValue, hasValue, isValidName, removeAdditionalName, setValue, store, stored, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String VALUE_TRAIN
public static final String VALUE_TEST
public static final String VALUE_SEED
public static final String VALUE_FOLD_NUMBER
public static final String VALUE_FOLD_COUNT
| Constructor Detail |
|---|
public WekaTrainTestSetContainer()
public WekaTrainTestSetContainer(weka.core.Instances train,
weka.core.Instances test)
train - the training settest - the test data
public WekaTrainTestSetContainer(weka.core.Instances train,
weka.core.Instances test,
Long seed)
train - the training settest - the test dataseed - the seed value, can be null
public WekaTrainTestSetContainer(weka.core.Instances train,
weka.core.Instances test,
Long seed,
Integer foldNumber,
Integer foldCount)
train - the training settest - the test dataseed - the seed value, can be nullfoldNumber - the fold numberfoldCount - the fold count| Method Detail |
|---|
public Enumeration<String> names()
names in class AbstractContainerpublic boolean isValid()
isValid in class AbstractContainer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||