spreadsheet writer

torch_scope.sheet_writer module

class torch_scope.sheet_writer(name, root_path, folder_name, credential_path=None)[source]

Spreadsheet writer.

Parameters:
  • name (str, required.) – Name for the spreadsheet.
  • root_path (str, required.) – The root path for the checkpoint files.
  • folder_name (str, required.) – Name for the folder (for the current experiments).
  • credential_path (str, optional, (default = PATH_TO_CRED).) – The path to the credential file.
add_description(description)[source]

Add descriptions for the current expriments to the spreadsheet.

Parameters:description (str, required.) – Descriptions to be added.
add_metric(metric_name, metric_value, login=False)[source]

Add metric value for the current expriments to the spreadsheet.

Parameters:
  • metric_name (str, required.) – Name of the metric.
  • metric_value (required.) – Value of the metric.
  • login (bool, optional, (default = False).) – Whether to re-login.
save_config()[source]

save the config file.