Struct leaf::solver::confusion_matrix::Sample [] [src]

pub struct Sample {
    // some fields omitted
}

A single prediction Sample.

Methods

impl Sample

fn correct(&self) -> bool

Returns if the prediction is equal to the expected target.

Trait Implementations

impl Display for Sample

fn fmt(&self, f: &mut Formatter) -> Result

Derived Implementations

impl Copy for Sample

impl Clone for Sample

fn clone(&self) -> Sample

1.0.0fn clone_from(&mut self, source: &Self)

impl Debug for Sample

fn fmt(&self, __arg_0: &mut Formatter) -> Result