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