Expand description
Computes the recall.
Recall score
How many relevant items are selected?
\[recall = \frac{tp}{tp + fn}\]
where tp (true positive) - correct result, fn (false negative) - missing result
Example:
use smartcore::metrics::recall::Recall;
use smartcore::metrics::Metrics;
let y_pred: Vec<f64> = vec![0., 1., 1., 0.];
let y_true: Vec<f64> = vec![0., 0., 1., 1.];
let score: f64 = Recall::new().get_score( &y_true, &y_pred);
Structs
- Recall metric.