pub fn average_precision<P, B, W>( predictions: &(impl Data<P> + SortableData<P>), labels: &impl Data<B>, weights: Option<&impl Data<W>>, order: Option<Order>, ) -> f64where P: IntoF64 + TotalCmp + Float + TotalOrder, B: BinaryLabel, W: IntoF64,