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

Function get_file_name

eval_heldout/science-world/eval.py:154–168  ·  view source on GitHub ↗
(args, task_num)

Source from the content-addressed store, hash-verified

152 raise Exception("Timeout after 3 retries.")
153
154def get_file_name(args, task_num):
155 if (len(args["output_path"]) > 0):
156 args["output_path"] = args["output_path"] + "/"
157
158 # Make path if it doesn't exist
159 if (not os.path.exists(args['output_path'])):
160 try:
161 os.makedirs(args["output_path"])
162 except:
163 pass
164
165 # filenameOutPrefix = args["output_path"] + "transformer-" + args["mode"] + "-eval-" + str(args["lm_path"].split('/')[-1]) + "-task" + str(task_num)
166 filenameOutPrefixSeed = args["output_path"] + "task" + str(task_num)
167
168 return filenameOutPrefixSeed
169
170def process_examples(conv: Conversation, example: List[str]):
171 for i, ex in enumerate(example):

Callers 2

evalFunction · 0.85
init_loggerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected