deepvariant/model_eval.py
def checkpoint_metrics_path(checkpoint_path, eval_name, file_name=None):
  """Gets a path to the JSON of eval metrics for checkpoint in eval_name."""
  checkpoint_dir = os.path.dirname(checkpoint_path)
  checkpoint_name = os.path.basename(checkpoint_path)
  if eval_name:
    # This bit of magic is defined by the estimator framework, and isn't easy
    # to change.  We only get to specify the suffix.
    checkpoint_dir = os.path.join(checkpoint_dir, 'eval_' + eval_name)
  if not file_name:
    return os.path.join(checkpoint_dir, checkpoint_name + '.metrics')
  return os.path.join(checkpoint_dir, file_name)
Gets a path to the JSON of eval metrics for checkpoint in eval_name.
Gets a path to the JSON of eval metrics for checkpoint in eval_name.
Gets a path to the JSON of eval metrics for checkpoint in eval_name .
def checkpoint_metrics_path(checkpoint_path, eval_name, file_name=None):
  checkpoint_dir = os.path.dirname(checkpoint_path)
  checkpoint_name = os.path.basename(checkpoint_path)
  if eval_name:
    checkpoint_dir = os.path.join(checkpoint_dir, 'eval_' + eval_name)
  if not file_name:
    return os.path.join(checkpoint_dir, checkpoint_name + '.metrics')
  return os.path.join(checkpoint_dir, file_name)
def checkpoint_metrics_path ( checkpoint_path , eval_name , file_name = None ) : checkpoint_dir = os . path . dirname ( checkpoint_path ) checkpoint_name = os . path . basename ( checkpoint_path ) if eval_name : checkpoint_dir = os . path . join ( checkpoint_dir , 'eval_' + eval_name ) if not file_name : return os . path . join ( checkpoint_dir , checkpoint_name + '.metrics' ) return os . path . join ( checkpoint_dir , file_name )
Gets a path to the JSON of eval metrics for checkpoint in eval_name.
Gets a path to the JSON of eval metrics for checkpoint in eval_name .
"""Gets a path to the JSON of eval metrics for checkpoint in eval_name.""" # This bit of magic is defined by the estimator framework, and isn't easy # to change.  We only get to specify the suffix.
checkpoint_path
eval_name
file_name