public interface TestingMetric
TestingMetric
is an interface through which the user may implement their own testing
method for use by LBJava's internal cross validation algorithm.Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the name of the testing metric.
|
double |
test(Classifier classifier,
Classifier oracle,
Parser parser)
Evaluates a classifier against an oracle on the data provided by a parser.
|
String getName()
double test(Classifier classifier, Classifier oracle, Parser parser)
classifier
- The classifier whose accuracy is being measured.oracle
- A classifier that returns the label of each example.parser
- A parser to supply the example objects.Copyright © 2016. All rights reserved.