Trait linfa::metrics::ToConfusionMatrix [−][src]
pub trait ToConfusionMatrix<A, T> { fn confusion_matrix(&self, ground_truth: T) -> Result<ConfusionMatrix<A>>; }
Classification for multi-label evaluation
Contains a routine to calculate the confusion matrix, all other scores are derived form it.
Required methods
fn confusion_matrix(&self, ground_truth: T) -> Result<ConfusionMatrix<A>>
[src]
Implementations on Foreign Types
impl<L: Label, S: Data<Elem = L>, T: AsTargets<Elem = L> + Labels<Elem = L>, R: Records> ToConfusionMatrix<L, &'_ DatasetBase<R, T>> for ArrayBase<S, Ix1>
[src]
impl<L: Label, S: Data<Elem = L>, T: AsTargets<Elem = L> + Labels<Elem = L>, R: Records> ToConfusionMatrix<L, &'_ DatasetBase<R, T>> for ArrayBase<S, Ix1>
[src]fn confusion_matrix(
&self,
ground_truth: &DatasetBase<R, T>
) -> Result<ConfusionMatrix<L>>
[src]
&self,
ground_truth: &DatasetBase<R, T>
) -> Result<ConfusionMatrix<L>>
Implementors
impl<L: Label, R, R2, T, T2> ToConfusionMatrix<L, &'_ DatasetBase<R, T>> for DatasetBase<R2, T2> where
R: Records,
R2: Records,
T: AsTargets<Elem = L>,
T2: AsTargets<Elem = L> + Labels<Elem = L>,
[src]
impl<L: Label, R, R2, T, T2> ToConfusionMatrix<L, &'_ DatasetBase<R, T>> for DatasetBase<R2, T2> where
R: Records,
R2: Records,
T: AsTargets<Elem = L>,
T2: AsTargets<Elem = L> + Labels<Elem = L>,
[src]fn confusion_matrix(
&self,
ground_truth: &DatasetBase<R, T>
) -> Result<ConfusionMatrix<L>>
[src]
&self,
ground_truth: &DatasetBase<R, T>
) -> Result<ConfusionMatrix<L>>