(event_paths, smooth_window)
return best_acc, best_step
Returns the best accuracy and the step it occurs in for the given run.

  Args:
    event_paths: A list of strings. The event files of the given run.
    smooth_window:  An integer that defines the neighborhood to be used in
      smoothing before the argmax (use <=1 for no smoothing)

  Raises:
    RuntimeError: No 'valid' event file for the given variant ('valid' here
      refers to an event file that has a validation accuracy tag).
Returns the best accuracy and the step it occurs in for the given run.
Returns the best accuracy and the step it occurs in for the given run .
def extract_best_from_variant(event_paths, smooth_window):
  """Returns the best accuracy and the step it occurs in for the given run.

  Args:
    event_paths: A list of strings. The event files of the given run.
    smooth_window:  An integer that defines the neighborhood to be used in
      smoothing before the argmax (use <=1 for no smoothing)

  Raises:
    RuntimeError: No 'valid' event file for the given variant ('valid' here
      refers to an event file that has a validation accuracy tag).
  """
  best_step = best_acc = -1
  for event_path in event_paths:
    best_acc_, best_step_ = extract_best_from_event_file(
        event_path, smooth_window)
    if best_acc_ > best_acc:
      best_acc = best_acc_
      best_step = best_step_
  if best_acc <= 0:
    raise RuntimeError('Something went wrong with the summary event reading.')
  return best_acc, best_step
def extract_best_from_variant ( event_paths , smooth_window ) : best_step = best_acc = - 1 for event_path in event_paths : best_acc_ , best_step_ = extract_best_from_event_file ( event_path , smooth_window ) if best_acc_ > best_acc : best_acc = best_acc_ best_step = best_step_ if best_acc <= 0 : raise RuntimeError ( 'Something went wrong with the summary event reading.' ) return best_acc , best_step