Ejemplo n.º 1
0
 def _get_run_name(self) -> str:
     timestamp = get_utcnow_time()
     config_hash = get_short_hash(self._config)
     default_name = f"{timestamp}-{config_hash}"
     name = get_by_keys(self._config, "args", "name", default=default_name)
     return name
Ejemplo n.º 2
0
 def _get_logdir(self, config: Dict) -> str:
     timestamp = get_utcnow_time()
     config_hash = get_short_hash(config)
     logdir = f"{timestamp}.{config_hash}"
     return logdir
Ejemplo n.º 3
0
 def _get_run_name(self) -> str:
     timestamp = get_utcnow_time()
     config_hash = get_short_hash(self._config)
     default_name = f"{timestamp}-{config_hash}"
     name = self._config.args.name or default_name
     return name