Precision / Recall Gate
Description
Given a set of items (SOURCE) and a set of relevant items (RELEVANT),
lets SOURCE through only if the computed precision or recall is >= Threshold.
Otherwise, the empty set is returned.
Input
SOURCE [OBJ]: a list of objectsRELEVANT [OBJ]: a list of objects
Output
PRECISION [OBJ]:SOURCEif precision is >=Threshold, an empty set otherwiseRECALL [OBJ]:SOURCEif recall is >=Threshold, an empty set otherwise
Parameters
Thresholdthe minimum value requested for precision or recall to letSOURCEthrough.
Output scores can be aggregated and/or normalized.