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