Trait burn::train::logger::MetricLogger

pub trait MetricLogger: Send {
    // Required methods
    fn log(&mut self, item: &MetricEntry);
    fn end_epoch(&mut self, epoch: usize);
    fn read_numeric(
        &mut self,
        name: &str,
        epoch: usize,
    ) -> Result<Vec<NumericEntry>, String>;
}
Expand description

Metric logger.

Required Methods§

fn log(&mut self, item: &MetricEntry)

Logs an item.

§Arguments
  • item - The item.

fn end_epoch(&mut self, epoch: usize)

Logs an epoch.

§Arguments
  • epoch - The epoch.

fn read_numeric( &mut self, name: &str, epoch: usize, ) -> Result<Vec<NumericEntry>, String>

Read the logs for an epoch.

Implementors§