Logger
The logger class.
Args
- log_dir : The logging location.
Returns
Logger instance.
Methods:
.record
Record the metric.
Args
- key (str) : The key of the metric.
- value (Any) : The value of the metric.
Returns
None.
.parse_train_msg
Parse the training message.
Args
- msg (Dict) : The training message.
Returns
The formatted string.
.parse_eval_msg
Parse the evaluation message.
Args
- msg (Dict) : The evaluation message.
Returns
The formatted string.
.time_stamp
Return the current time stamp.
.info
Output msg with 'info' level.
Args
- msg (str) : Message to be printed.
Returns
None.
.debug
Output msg with 'debug' level.
Args
- msg (str) : Message to be printed.
Returns
None.
.error
Output msg with 'error' level.
Args
- msg (str) : Message to be printed.
Returns
None.
.train
Output msg with 'train' level.
Args
- msg (Dict) : Message to be printed.
Returns
None.
.eval
Output msg with 'eval' level.
Args
- msg (Dict) : Message to be printed.
Returns
None.