concision_neural/traits/
predict.rs

1/*
2    Appellation: predict <module>
3    Contrib: @FL03
4*/
5
6/// This trait defines the prediction of the network
7pub trait Predict<Rhs> {
8    type Confidence;
9    type Output;
10
11    fn predict(&self, input: &Rhs) -> crate::NeuralResult<Self::Output>;
12
13    fn predict_with_confidence(
14        &self,
15        input: &Rhs,
16    ) -> crate::NeuralResult<(Self::Output, Self::Confidence)>;
17}