Trait Predict

Source
pub trait Predict<Rhs> {
    type Output;

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

The Predict trait is designed as a model-specific interface for making predictions. In the future, we may consider opening the trait up allowing for an alternative implementation of the trait, but for now, it is simply implemented for all implementors of the Forward trait.

Note: The trait is sealed, preventing external implementations, ensuring that only the library can define how predictions are made. This is to maintain consistency and integrity across different model implementations.

Required Associated Types§

Required Methods§

Source

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

Implementors§

Source§

impl<M, U, V> Predict<U> for M
where M: Forward<U, Output = V>,