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

Method load

opencompass/datasets/medmcqa.py:35–45  ·  view source on GitHub ↗
(path: str, prompt_mode: str = 'zero-shot', **kwargs)

Source from the content-addressed store, hash-verified

33
34 @staticmethod
35 def load(path: str, prompt_mode: str = 'zero-shot', **kwargs):
36 dataset = load_dataset(path=path,
37 split='validation',
38 trust_remote_code=True)
39
40 if prompt_mode == 'zero-shot':
41 dataset = dataset.map(lambda item: _parse(item, prompt_mode))
42 elif prompt_mode == 'few-shot':
43 pass # TODO: Implement few-shot prompt
44
45 return dataset
46
47
48class MedmcqaEvaluator(BaseEvaluator):

Callers

nothing calls this directly

Calls 2

load_datasetFunction · 0.90
_parseFunction · 0.70

Tested by

no test coverage detected