Skip to main content

average_precision

Function average_precision 

Source
pub fn average_precision(
    scores: &[f32],
    labels: &[bool],
) -> Result<f32, EvalError>
Expand description

Compute average precision (area under the precision-recall curve) using the trapezoidal rule.

Prepends the point (recall=0, precision=1) to ensure the full area is captured.