old_contents: from keras.callbacks import Callback, ModelCheckpoint, CSVLogger
  
  
  def get_callbacks(name):
      log_path = '{}.log'.format(name)
      weight_path = '/tmp/{}_{epoch:02d}_{val_binary_accuracy:.3f}.h5'.format(name)
  
      return [
          CSVLogger(log_path),
          ModelCheckpoint(filepath=weight_path)
      ]
  
new_contents: from datetime import datetime
  from keras.callbacks import Callback, ModelCheckpoint, CSVLogger
  
  
  def get_callbacks(name):
      now = datetime.now().strftime("%Y-%m-%d %H:%M:%S")
      log_path = Path('log/{} ({}).csv'.format(name, now))
      weight_path = Path('/tmp/{}_{epoch:02d}_{val_binary_accuracy:.3f}.h5'.format(name))
  
      return [
          CSVLogger(log_path),
          ModelCheckpoint(filepath=weight_path)
      ]
  
subject: Update at 2017-07-14 21-32-55