Open davidfox87 opened 1 year ago
# Katib parses metrics in this format: <metric-name>=<metric-value>. class CustomCallback(tf.keras.callbacks.Callback): def on_epoch_end(self, epoch, logs=None): logging.info( "Epoch {}/{}. accuracy={:.4f} - loss={:.4f}".format( epoch+1, num_epoch, logs["accuracy"], logs["loss"] ) )
logging.basicConfig( format="%(asctime)s %(levelname)-8s %(message)s", datefmt="%Y-%m-%dT%H:%M:%SZ", level=logging.INFO, )
Callback class for logging training.