Trait Predict

Source
pub trait Predict<Rhs> {
    type Confidence;
    type Output;

    // Required methods
    fn predict(&self, input: &Rhs) -> Result<Self::Output>;
    fn predict_with_confidence(
        &self,
        input: &Rhs,
    ) -> Result<(Self::Output, Self::Confidence)>;
}
Expand description

This trait defines the prediction of the network

Required Associated Types§

Required Methods§

Source

fn predict(&self, input: &Rhs) -> Result<Self::Output>

Source

fn predict_with_confidence( &self, input: &Rhs, ) -> Result<(Self::Output, Self::Confidence)>

Implementors§