Default output directory is: outputs/{time_str}/{name or category}
(self)
| 173 | f.write(json.dumps(metrics, ensure_ascii=False, indent=4)) |
| 174 | |
| 175 | def get_output_dir(self) -> str: |
| 176 | """ |
| 177 | Default output directory is: outputs/{time_str}/{name or category} |
| 178 | """ |
| 179 | if not self.output_root_dir: |
| 180 | self.output_root_dir = "outputs/%s" % datetime.datetime.now().strftime("%Y-%m-%d-%H-%M-%S") |
| 181 | return os.path.join(self.output_root_dir, self.category or self.name or "default") |
| 182 | |
| 183 | @property |
| 184 | def metrics(self) -> Dict[str, Callable[[List[T_OUTPUT], List[T_TARGET]], Any]]: |
no test coverage detected