MCPcopy Create free account
hub / github.com/InternScience/SciReason / parse_dataset_cfg

Function parse_dataset_cfg

tools/prompt_viewer.py:44–48  ·  view source on GitHub ↗
(dataset_cfg: ConfigDict)

Source from the content-addressed store, hash-verified

42
43
44def parse_dataset_cfg(dataset_cfg: ConfigDict) -> Dict[str, ConfigDict]:
45 dataset2cfg = {}
46 for dataset in dataset_cfg:
47 dataset2cfg[dataset_abbr_from_cfg(dataset)] = dataset
48 return dataset2cfg
49
50
51def print_prompts(model_cfg, dataset_cfg, count=1):

Callers 1

mainFunction · 0.85

Calls 1

dataset_abbr_from_cfgFunction · 0.90

Tested by

no test coverage detected