pub struct CsvLogger { /* private fields */ }Expand description
CSV logger for easy data analysis.
Writes metrics to a CSV file that can be imported into spreadsheets or analyzed with pandas/numpy.
§Example
use tensorlogic_train::CsvLogger;
use tensorlogic_train::LoggingBackend;
let mut logger = CsvLogger::new("/tmp/metrics.csv").unwrap();
logger.log_scalar("loss", 0.5, 1).unwrap();
logger.log_scalar("accuracy", 0.95, 1).unwrap();
logger.flush().unwrap();Implementations§
Trait Implementations§
Source§impl LoggingBackend for CsvLogger
impl LoggingBackend for CsvLogger
Auto Trait Implementations§
impl Freeze for CsvLogger
impl RefUnwindSafe for CsvLogger
impl Send for CsvLogger
impl Sync for CsvLogger
impl Unpin for CsvLogger
impl UnwindSafe for CsvLogger
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more