You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just rewrote the init method for that. It's a really simple fix but it helps a lot when comparing executions.
class TensorBoardColabCallback(TensorBoard):
def __init__(self, tbc=None, write_graph=True, name=None, **kwargs):
# Make the original `TensorBoard` log to a subdirectory 'training'
if tbc is None:
return
log_dir = tbc.get_graph_path()
training_log_dir = os.path.join(log_dir, 'training_{}'.format(name))
super(TensorBoardColabCallback, self).__init__(training_log_dir, **kwargs)
# Log the validation metrics to a separate subdirectory
self.val_log_dir = os.path.join(log_dir, 'validation_{}'.format(name))
Directory path is hardcoded as 'training', right?
training_log_dir = os.path.join(log_dir, 'training')
The text was updated successfully, but these errors were encountered: