Unverified Commit ccca64f7 authored by Lintang Sutawika's avatar Lintang Sutawika Committed by GitHub
Browse files

Merge branch 'big-refactor' into cont-metrics

parents 0a39d055 b7a4ea06
"dataset_name": "us_foreign_policy"
"description": "The following are multiple choice questions (with answers) about us foreign policy.\n\n"
"description": "The following are multiple choice questions (with answers) about us\
\ foreign policy.\n\n"
"group": "mmlu_flan_n_shot_generative_social_sciences"
"include": "_mmlu_flan_loglikelihood_template_yaml"
"task": "mmlu_flan_n_shot_loglikelihood_us_foreign_policy"
"task": "mmlu_flan_n_shot_generative_us_foreign_policy"
"dataset_name": "virology"
"description": "The following are multiple choice questions (with answers) about virology.\n\n"
"description": "The following are multiple choice questions (with answers) about virology.\n\
\n"
"group": "mmlu_flan_n_shot_generative_other"
"include": "_mmlu_flan_loglikelihood_template_yaml"
"task": "mmlu_flan_n_shot_loglikelihood_virology"
"task": "mmlu_flan_n_shot_generative_virology"
"dataset_name": "world_religions"
"description": "The following are multiple choice questions (with answers) about world religions.\n\n"
"description": "The following are multiple choice questions (with answers) about world\
\ religions.\n\n"
"group": "mmlu_flan_n_shot_generative_humanities"
"include": "_mmlu_flan_loglikelihood_template_yaml"
"task": "mmlu_flan_n_shot_loglikelihood_world_religions"
"task": "mmlu_flan_n_shot_generative_world_religions"
......@@ -3,12 +3,3 @@ def doc_to_text(doc) -> str:
return "Abstract: {}\nQuestion: {}\nAnswer:".format(
ctxs, doc["QUESTION"], doc["final_decision"]
)
def doc_to_target(doc) -> str:
return " {}".format(doc["final_decision"])
def gold_alias(doc):
dict_to_label = {"yes": 0, "no": 1, "maybe": 2}
return dict_to_label[doc["final_decision"]]
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment