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