public interface ScoringEventObserver<KeyT,TestT>
KeyT and the
predicted (system) item is of type TestT.
finish(File) is expected to be called when there are no more items to inspect. What happens if more items
are observed after finishing is not defined by the interface contract.
Implementations may silently take no action for some types of observations. For example, an F-score related observer
would take no action upon observation of a true negative. However, an implementation should not raise an exception
simply because it is asked to observe an event for which it will take no action.| Modifier and Type | Method and Description |
|---|---|
void |
finish(File outputDirectory)
Performs any final tasks, using the specified output directory as the base for output.
|
void |
observeFalseNegative(KeyT gold,
double score)
Records a false negative event.
|
void |
observeFalsePositive(TestT predicted,
double score)
Records a false positive event.
|
void |
observeTrueNegative(KeyT gold,
TestT predicted,
double score)
Records a true negative event.
|
void |
observeTruePositive(KeyT gold,
TestT predicted,
double score)
Records a true positive event.
|
void observeTruePositive(KeyT gold, TestT predicted, double score)
void observeTrueNegative(KeyT gold, TestT predicted, double score)
void observeFalsePositive(TestT predicted, double score)
void observeFalseNegative(KeyT gold, double score)
void finish(File outputDirectory) throws IOException
IOExceptionCopyright © 2016. All rights reserved.