pub trait ToConfusionMatrix<A, T> {
    // Required method
    fn confusion_matrix(&self, ground_truth: T) -> Result<ConfusionMatrix<A>>;
}
Expand description

Classification for multi-label evaluation

Contains a routine to calculate the confusion matrix, all other scores are derived form it.

Required Methods§

source

fn confusion_matrix(&self, ground_truth: T) -> Result<ConfusionMatrix<A>>

Implementations on Foreign Types§

source§

impl<L: Label, S: Data<Elem = L>, T: AsSingleTargets<Elem = L> + Labels<Elem = L>, R: Records> ToConfusionMatrix<L, &DatasetBase<R, T>> for ArrayBase<S, Ix1>

source§

fn confusion_matrix( &self, ground_truth: &DatasetBase<R, T> ) -> Result<ConfusionMatrix<L>>

Implementors§

source§

impl<L: Label, R, R2, T, T2> ToConfusionMatrix<L, &DatasetBase<R, T>> for DatasetBase<R2, T2>
where R: Records, R2: Records, T: AsSingleTargets<Elem = L>, T2: AsSingleTargets<Elem = L> + Labels<Elem = L>,

source§

impl<L: Label, S, T> ToConfusionMatrix<L, &ArrayBase<S, Dim<[usize; 1]>>> for T
where S: Data<Elem = L>, T: AsSingleTargets<Elem = L> + Labels<Elem = L>,

source§

impl<L: Label, S, T> ToConfusionMatrix<L, ArrayBase<S, Dim<[usize; 1]>>> for T
where S: Data<Elem = L>, T: AsSingleTargets<Elem = L> + Labels<Elem = L>,