public class DoccatCrossValidator
extends java.lang.Object
| Constructor and Description |
|---|
DoccatCrossValidator(java.lang.String languageCode,
TrainingParameters mlParams,
DoccatFactory factory,
DoccatEvaluationMonitor... listeners)
Creates a
DoccatCrossValidator with the given
FeatureGenerators. |
| Modifier and Type | Method and Description |
|---|---|
void |
evaluate(ObjectStream<DocumentSample> samples,
int nFolds)
Starts the evaluation.
|
double |
getDocumentAccuracy()
Retrieves the accuracy for all iterations.
|
long |
getDocumentCount()
Retrieves the number of words which where validated over all iterations.
|
public DoccatCrossValidator(java.lang.String languageCode,
TrainingParameters mlParams,
DoccatFactory factory,
DoccatEvaluationMonitor... listeners)
DoccatCrossValidator with the given
FeatureGenerators.public void evaluate(ObjectStream<DocumentSample> samples, int nFolds) throws java.io.IOException
samples - the data to train and testnFolds - number of foldsjava.io.IOExceptionpublic double getDocumentAccuracy()
public long getDocumentCount()
Copyright © 2010 - 2020 Adobe. All Rights Reserved