pub fn average_precision<S, P, B, W>( predictions: &(impl Data<P> + SortableData<P>), labels: &impl Data<B>, weights: Option<&impl Data<W>>, order: Option<Order>, ) -> Swhere S: ScoreAccumulator, P: IntoScore<S>, B: BinaryLabel, W: IntoScore<S> + Clone,