public class CrossValidation extends Object
| Constructor and Description |
|---|
CrossValidation(int round,
org.maochen.nlp.ml.IClassifier classifier,
boolean shuffleData)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
run(List<org.maochen.nlp.ml.Tuple> data)
Cross validation.
|
public CrossValidation(int round,
org.maochen.nlp.ml.IClassifier classifier,
boolean shuffleData)
round - iterations for the cross validation.classifier - the actual classifier need to test.shuffleData - whether the data needs to be shuffled at the begining of the whole
process.public void run(List<org.maochen.nlp.ml.Tuple> data)
data - whole testing data collectionCopyright © 2016. All rights reserved.