pub trait PredictWithConfidence<Rhs>: Predict<Rhs> {
type Confidence;
// Required method
fn predict_with_confidence(
&self,
input: &Rhs,
) -> NeuralResult<(Self::Output, Self::Confidence)>;
}Expand description
This trait extends the Predict trait to include a confidence score for the prediction.
The confidence score is calculated as the inverse of the variance of the output.