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

Method load

opencompass/datasets/mmlu_pro.py:35–40  ·  view source on GitHub ↗
(path: str, category: str)

Source from the content-addressed store, hash-verified

33
34 @staticmethod
35 def load(path: str, category: str):
36 path = get_data_path(path)
37 mmlu_pro = load_dataset(path)
38 mmlu_pro = mmlu_pro.filter(lambda x: x['category'] == category)
39 mmlu_pro = mmlu_pro.map(_parse)
40 return mmlu_pro
41
42class MMLUProBaseEvaluator(BaseEvaluator):
43

Callers

nothing calls this directly

Calls 3

get_data_pathFunction · 0.90
load_datasetFunction · 0.90
filterMethod · 0.80

Tested by

no test coverage detected