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

Method write

eval_heldout/hotpotQA/src/wrappers.py:240–244  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

238 self.traj = {"observations": [], "actions": []}
239
240 def write(self):
241 self.update_record()
242 with open(self.file_path, "w") as f:
243 json.dump(self.trajs, f)
244 print(f"Saved trajs to trajs/{self.file_id}.json")
245
246 def close(self):
247 self.write()

Callers 15

closeMethod · 0.95
get_model_answersFunction · 0.45
reorg_answer_fileFunction · 0.45
eval_gsm8k_tgi.pyFile · 0.45
cal_mmluFunction · 0.45
evalFunction · 0.45
data_convert.pyFile · 0.45
mainFunction · 0.45
save_resultMethod · 0.45
saveMethod · 0.45
defaultDisplayFunction · 0.45
FbFunction · 0.45

Calls 1

update_recordMethod · 0.95

Tested by

no test coverage detected