Skip to main content

MetricsRendererEvaluation

Trait MetricsRendererEvaluation 

pub trait MetricsRendererEvaluation: Send + Sync {
    // Required method
    fn update_test(&mut self, name: EvaluationName, state: MetricState);

    // Provided method
    fn on_test_end(
        &mut self,
        summary: Option<LearnerSummary>,
    ) -> Result<(), Box<dyn Error>> { ... }
}
Expand description

Trait for rendering metrics.

Required Methods§

fn update_test(&mut self, name: EvaluationName, state: MetricState)

Updates the testing metric state.

§Arguments
  • state - The metric state.

Provided Methods§

fn on_test_end( &mut self, summary: Option<LearnerSummary>, ) -> Result<(), Box<dyn Error>>

Callback method invoked when testing ends, whether it completed successfully or was interrupted.

§Returns

A result indicating whether the end-of-testing actions were successful.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§