oa::ml::training::TrainingMetric

Stateful metric updated once after each completed step.

TrRust public API

Declaration

pub trait TrainingMetric { // Required methods fn name(&self) -> &str; fn reset(&mut self); fn update_step(&mut self, state: TrainingSnapshot); fn result(&self) -> f64; }
Public Rust declaration.

Public Methods

fn name(&self) -> &str
fn reset(&mut self)
fn update_step(&mut self, state: TrainingSnapshot)
fn result(&self) -> f64

Public Method Documentation

fn name( &self ) -> &str
No public source comment is attached to this declaration.
fn reset( &mut self )
No public source comment is attached to this declaration.
fn update_step( &mut self, state: TrainingSnapshot )
No public source comment is attached to this declaration.
fn result( &self ) -> f64
No public source comment is attached to this declaration.