|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.util.ValidationHelper
public class ValidationHelper
Field Summary | |
---|---|
static int |
FRACTION
The default size of the validation set (1/10 of the dataset). |
Constructor Summary | |
---|---|
ValidationHelper(Dataset dataset)
Creates a new ValidationHelper . |
|
ValidationHelper(Dataset dataset,
int fraction)
Creates a new ValidationHelper . |
Method Summary | |
---|---|
Dataset |
getTraining()
|
Dataset |
getValidation()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FRACTION
Constructor Detail |
---|
public ValidationHelper(Dataset dataset)
ValidationHelper
.
dataset
- the dataset to be divided.public ValidationHelper(Dataset dataset, int fraction)
ValidationHelper
.
dataset
- the dataset to be divided.fraction
- the fraction to be used as validation (the size of the
validation will be dataset.getSize() / fraction
).Method Detail |
---|
public Dataset getTraining()
public Dataset getValidation()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |