public class CrossValidation extends Object
| Constructor and Description |
|---|
CrossValidation(int nfold,
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 nfold,
org.maochen.nlp.ml.IClassifier classifier,
boolean shuffleData)
nfold - nfold for the cross validation. (Recommand: 10-fold)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.