csvlogger
csvlogger ¶
Implementation of the CSVLogger callback for TensorFlow.
Classes¶
CSVLogger ¶
Bases: Callback
Callback that streams epoch results to a CSV file.
Supports all values that can be represented as a string, including 1D iterables such as np.ndarray.
Example¶
Arguments¶
exp_context: An instance of ExperimentContext which is used to write csv files
Initialize CSVLogger with a given Context and csv filename.
Supports all values that can be represented as a string, including 1D iterables such as np.ndarray.
Example¶
Arguments¶
exp_context: An instance of ExperimentContext which is used to write csv files
separator: string used to separate elements in the CSV file.
Source code in niceml/dlframeworks/keras/callbacks/csvlogger.py
Functions¶
flush ¶
The flush function is called when the training is finished or at the end of an epoch. It writes the data to a csv file in the data directory of your experiment.
Source code in niceml/dlframeworks/keras/callbacks/csvlogger.py
on_epoch_end ¶
The on_epoch_end function is called at the end of every epoch. It writes the logs to a CSV file.
Parameters:
-
epoch
–Current epoch
-
logs
–The logs of the current epoch to be written to the csv file.
Source code in niceml/dlframeworks/keras/callbacks/csvlogger.py
on_train_end ¶
The on_train_end function is called at the end of training. In this case it writes the logs of the current training to a csv file.
Parameters:
-
logs
–The logs of the current training. Ignored here because the logs are stored in the object (
self.keys
,self.data
).