Skip to main content

Evaluator

Trait Evaluator 

Source
pub trait Evaluator: Send + Sync {
    // Required method
    fn evaluate<'life0, 'life1, 'life2, 'life3, 'async_trait>(
        &'life0 self,
        prediction: &'life1 str,
        reference: &'life2 str,
        input: &'life3 str,
    ) -> Pin<Box<dyn Future<Output = Result<EvalResult, SynapticError>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait,
             'life2: 'async_trait,
             'life3: 'async_trait;
}
Expand description

Trait for evaluating predictions against references.

Required Methods§

Source

fn evaluate<'life0, 'life1, 'life2, 'life3, 'async_trait>( &'life0 self, prediction: &'life1 str, reference: &'life2 str, input: &'life3 str, ) -> Pin<Box<dyn Future<Output = Result<EvalResult, SynapticError>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait, 'life2: 'async_trait, 'life3: 'async_trait,

Evaluate a prediction against a reference, given the original input.

Implementors§