Numeric

Trait Numeric 

pub trait Numeric {
    // Required methods
    fn value(&self) -> NumericEntry;
    fn running_value(&self) -> NumericEntry;
}
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) -> NumericEntry

Returns the numeric value of the metric.

fn running_value(&self) -> NumericEntry

Returns the current aggregated value of the metric over the global step (epoch).

Implementors§

§

impl Numeric for CpuMemory

§

impl Numeric for CpuTemperature

§

impl Numeric for CpuUse

§

impl Numeric for IterationSpeedMetric

§

impl Numeric for LearningRateMetric

§

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

§

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

§

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

§

impl<B> Numeric for FBetaScoreMetric<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 PerplexityMetric<B>
where B: Backend,

§

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

§

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

§

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

§

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

§

impl<B, const D: usize> Numeric for DiceMetric<B, D>
where B: Backend,