def read_job_loss(training_file):
  """ Read in validation loss updates """
  valid_losses = []
  for line in open(training_file):
    if line.startswith('Epoch'):
      a = line.split(',')
      valid_str = a[1]
      valid_loss = float(valid_str.split()[-1])
      valid_losses.append(valid_loss)
  return valid_losses