package LBJ2.learn;
import LBJ2.classify.Classifier;
import LBJ2.parse.Parser;
/**
* <code>TestingMetric</code> is an interface through which the user may
* implement their own testing method for use by LBJ's internal cross
* validation algorithm.
*
* @author Dan Muriello
**/
public interface TestingMetric
{
/** Returns the name of the testing metric. */
public String getName();
/**
* Evaluates a classifier against an oracle on the data provided by a
* parser.
*
* @param classifier The classifier whose accuracy is being measured.
* @param oracle A classifier that returns the label of each example.
* @param parser A parser to supply the example objects.
* @return A value assessing the performance of the classifier.
**/
public double test(Classifier classifier, Classifier oracle, Parser parser);
}