Trait burn::train::metric::Numeric

pub trait Numeric {
    // Required method
    fn value(&self) -> f64;
}
Expand description

Declare a metric to be numeric.

This is useful to plot the values of a metric during training.

Required Methods§

fn value(&self) -> f64

Returns the numeric value of the metric.

Implementors§

§

impl Numeric for NumericMetricState

§

impl Numeric for CpuMemory

§

impl Numeric for CpuTemperature

§

impl Numeric for CpuUse

§

impl Numeric for LearningRateMetric

§

impl<B> Numeric for AccuracyMetric<B>
where B: Backend,

§

impl<B> Numeric for HammingScore<B>
where B: Backend,

§

impl<B> Numeric for LossMetric<B>
where B: Backend,

§

impl<B> Numeric for TopKAccuracyMetric<B>
where B: Backend,