MCPcopy Create free account
hub / github.com/THUDM/AgentTuning / get_output_dir

Method get_output_dir

AgentBench.old/src/task.py:175–181  ·  view source on GitHub ↗

Default output directory is: outputs/{time_str}/{name or category}

(self)

Source from the content-addressed store, hash-verified

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]]:

Callers 6

evaluateMethod · 0.95
save_singleMethod · 0.95
save_runs_allMethod · 0.95
save_metrics_allMethod · 0.95
mainFunction · 0.80
_sub_output_dirMethod · 0.80

Calls 2

nowMethod · 0.80
joinMethod · 0.80

Tested by

no test coverage detected