MetricsRendererEvaluation

Trait MetricsRendererEvaluation 

pub trait MetricsRendererEvaluation: Send + Sync {
    // Required methods
    fn update_test(&mut self, name: EvaluationName, state: MetricState);
    fn render_test(
        &mut self,
        item: EvaluationProgress,
        progress_indicators: Vec<ProgressType>,
    );

    // 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.

fn render_test( &mut self, item: EvaluationProgress, progress_indicators: Vec<ProgressType>, )

Renders the testing progress.

§Arguments
  • item - The training progress.

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.

Implementors§