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