public class LanguageDetectorCrossValidator extends Object
| Constructor and Description | 
|---|
LanguageDetectorCrossValidator(TrainingParameters mlParams,
                              LanguageDetectorFactory factory,
                              LanguageDetectorEvaluationMonitor... listeners)
Creates a  
LanguageDetectorCrossValidator with the given
 FeatureGenerators. | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
evaluate(ObjectStream<LanguageSample> 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 LanguageDetectorCrossValidator(TrainingParameters mlParams, LanguageDetectorFactory factory, LanguageDetectorEvaluationMonitor... listeners)
LanguageDetectorCrossValidator with the given
 FeatureGenerators.public void evaluate(ObjectStream<LanguageSample> samples, int nFolds) throws IOException
samples - the data to train and testnFolds - number of foldsIOExceptionpublic double getDocumentAccuracy()
public long getDocumentCount()
Copyright © 2021 The Apache Software Foundation. All rights reserved.