Function average_precision

Source
pub fn average_precision<B, L, P, W>(
    labels: &L,
    predictions: &P,
    weights: Option<&W>,
) -> f64
where B: BinaryLabel, L: Data<B>, P: SortableData<f64>, W: Data<f64>,