LBJ2.learn
Interface TestingMetric
- All Known Implementing Classes:
- Accuracy
public interface TestingMetric
TestingMetric is an interface through which the user may
implement their own testing method for use by LBJ's internal
cross validation algorithm.
|
Method Summary |
double |
test(Classifier classifier,
Classifier oracle,
Parser parser)
test is the function which LBJ's cross validation method
will call in order to test an example. |
test
double test(Classifier classifier,
Classifier oracle,
Parser parser)
test is the function which LBJ's cross validation method
will call in order to test an example.
- Parameters:
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.