Trait linfa::metrics::BinaryClassification[][src]

pub trait BinaryClassification<T> {
    fn roc(&self, y: T) -> Result<ReceiverOperatingCharacteristic>;
}

Classification for binary-labels

This contains Receiver-Operating-Characterstics curves as these only work for binary classification tasks.

Required methods

Loading content...

Implementations on Foreign Types

impl BinaryClassification<&'_ [bool]> for &[Pr][src]

impl<D: Data<Elem = Pr>> BinaryClassification<&'_ [bool]> for ArrayBase<D, Ix1>[src]

Loading content...

Implementors

impl<R: Records, R2: Records, T: AsTargets<Elem = bool>, T2: AsTargets<Elem = Pr>> BinaryClassification<&'_ DatasetBase<R, T>> for DatasetBase<R2, T2>[src]

Loading content...