Trait PredictWithConfidence

Source
pub trait PredictWithConfidence<Rhs>: Predict<Rhs> {
    type Confidence;

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

The PredictWithConfidence trait is an extension of the Predict trait, providing an additional method to obtain predictions along with a confidence score.

Required Associated Types§

Required Methods§

Source

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

Implementors§

Source§

impl<M, U, A, D> PredictWithConfidence<U> for M
where A: Float + FromPrimitive + ScalarOperand, D: Dimension, Self: Predict<U, Output = Array<A, D>>,