burn::train::metric

Function format_float

pub fn format_float(float: f64, precision: usize) -> String
Expand description

Format a float with the given precision. Will use scientific notation if necessary.