tick.metrics.support_recall

tick.metrics.support_recall(x_truth, x, eps=1e-08)[source]

Computes proportion of true positives (TP) among the number ground truth positives (namely TP + FN, where FN is the number of false negatives), hence TP / (TP + FN). This is useful to assess the features selection or outliers detection abilities of a learner.

Parameters

x_truth : numpy.array

Ground truth weights

x : numpy.array

Learned weights

Returns

output : float

The False Discovery Proportion for detecting the support of x_truth using the support of x

Examples using tick.metrics.support_recall