(path: str, category: str)
| 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 | |
| 42 | class MMLUProBaseEvaluator(BaseEvaluator): |
| 43 |
nothing calls this directly
no test coverage detected