pub fn score_sample<S, SA, P, B, W>(
score: S,
predictions: &(impl Data<P> + SortableData<P>),
labels: &impl Data<B>,
weights: Option<&impl Data<W>>,
) -> SAwhere
S: ScoreSortedDescending,
SA: ScoreAccumulator,
P: IntoScore<SA>,
B: BinaryLabel,
W: IntoScore<SA> + Clone,