MCPcopy Create free account
hub / github.com/InternScience/InternAgent / set_module

Function set_module

tasks/AutoTTS/code/experiment/module.py:23–34  ·  view source on GitHub ↗
(module_name)

Source from the content-addressed store, hash-verified

21module = None
22prompter = None
23def set_module(module_name): # math, multi-choice, multi-hop
24 global module, prompter, score
25 module = module_name
26 if module == "math":
27 prompter = math
28 score = score_math
29 elif module == "multi-choice":
30 prompter = multichoice
31 score = score_mc
32 elif module == "multi-hop":
33 prompter = multihop
34 score = score_mh
35
36def retry(func_name):
37 def decorator(func):

Callers 2

gather_resultsMethod · 0.90
optimize_datasetFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected