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]:
SOURCE
if precision is >=Threshold
, an empty set otherwiseRECALL [OBJ]:
SOURCE
if recall is >=Threshold
, an empty set otherwise
Parameters
Threshold
the minimum value requested for precision or recall to letSOURCE
through.
Output scores can be aggregated and/or normalized.