Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
gaoqiong
lm-evaluation-harness
Commits
06d3406e
"vscode:/vscode.git/clone" did not exist on "612f438a270cae306e7af6054bc3d168c51eb5f3"
Commit
06d3406e
authored
Sep 04, 2023
by
lintangsutawika
Browse files
update
parent
f23ae748
Changes
129
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
11 additions
and
17 deletions
+11
-17
lm_eval/tasks/mmlu/flan_n_shot/mmlu_professional_accounting.yaml
.../tasks/mmlu/flan_n_shot/mmlu_professional_accounting.yaml
+1
-2
lm_eval/tasks/mmlu/flan_n_shot/mmlu_professional_law.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_professional_law.yaml
+1
-2
lm_eval/tasks/mmlu/flan_n_shot/mmlu_professional_medicine.yaml
...al/tasks/mmlu/flan_n_shot/mmlu_professional_medicine.yaml
+1
-2
lm_eval/tasks/mmlu/flan_n_shot/mmlu_professional_psychology.yaml
.../tasks/mmlu/flan_n_shot/mmlu_professional_psychology.yaml
+1
-2
lm_eval/tasks/mmlu/flan_n_shot/mmlu_public_relations.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_public_relations.yaml
+1
-2
lm_eval/tasks/mmlu/flan_n_shot/mmlu_security_studies.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_security_studies.yaml
+1
-2
lm_eval/tasks/mmlu/flan_n_shot/mmlu_us_foreign_policy.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_us_foreign_policy.yaml
+1
-2
lm_eval/tasks/mmlu/flan_n_shot/mmlu_world_religions.yaml
lm_eval/tasks/mmlu/flan_n_shot/mmlu_world_religions.yaml
+1
-2
lm_eval/tasks/super_glue/cb/t5_utils.py
lm_eval/tasks/super_glue/cb/t5_utils.py
+3
-1
No files found.
lm_eval/tasks/mmlu/flan_n_shot/mmlu_professional_accounting.yaml
View file @
06d3406e
dataset_name
:
professional_accounting
dataset_name
:
professional_accounting
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
professional
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
professional
accounting.
accounting.
'
'
...
...
lm_eval/tasks/mmlu/flan_n_shot/mmlu_professional_law.yaml
View file @
06d3406e
dataset_name
:
professional_law
dataset_name
:
professional_law
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
professional
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
professional
law.
law.
'
'
...
...
lm_eval/tasks/mmlu/flan_n_shot/mmlu_professional_medicine.yaml
View file @
06d3406e
dataset_name
:
professional_medicine
dataset_name
:
professional_medicine
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
professional
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
professional
medicine.
medicine.
'
'
...
...
lm_eval/tasks/mmlu/flan_n_shot/mmlu_professional_psychology.yaml
View file @
06d3406e
dataset_name
:
professional_psychology
dataset_name
:
professional_psychology
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
professional
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
professional
psychology.
psychology.
'
'
...
...
lm_eval/tasks/mmlu/flan_n_shot/mmlu_public_relations.yaml
View file @
06d3406e
dataset_name
:
public_relations
dataset_name
:
public_relations
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
public
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
public
relations.
relations.
'
'
...
...
lm_eval/tasks/mmlu/flan_n_shot/mmlu_security_studies.yaml
View file @
06d3406e
dataset_name
:
security_studies
dataset_name
:
security_studies
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
security
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
security
studies.
studies.
'
'
...
...
lm_eval/tasks/mmlu/flan_n_shot/mmlu_us_foreign_policy.yaml
View file @
06d3406e
dataset_name
:
us_foreign_policy
dataset_name
:
us_foreign_policy
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
us
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
us
foreign
policy.
foreign
policy.
'
'
...
...
lm_eval/tasks/mmlu/flan_n_shot/mmlu_world_religions.yaml
View file @
06d3406e
dataset_name
:
world_religions
dataset_name
:
world_religions
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
world
description
:
'
The
following
are
multiple
choice
questions
(with
answers)
about
world
religions.
religions.
'
'
...
...
lm_eval/tasks/super_glue/cb/t5_utils.py
View file @
06d3406e
...
@@ -4,7 +4,9 @@ import sklearn.metrics
...
@@ -4,7 +4,9 @@ import sklearn.metrics
def
mean_3class_f1
(
predictions
,
references
):
# This is a passthrough function
def
mean_3class_f1
(
predictions
,
references
):
# This is a passthrough function
string_label
=
[
"entailment"
,
"contradiction"
,
"neutral"
]
string_label
=
[
"entailment"
,
"contradiction"
,
"neutral"
]
predictions
=
string_label
.
index
(
predictions
[
0
])
if
predictions
[
0
]
in
string_label
else
0
predictions
=
(
string_label
.
index
(
predictions
[
0
])
if
predictions
[
0
]
in
string_label
else
0
)
references
=
string_label
.
index
(
references
[
0
])
references
=
string_label
.
index
(
references
[
0
])
return
(
predictions
,
references
)
return
(
predictions
,
references
)
...
...
Prev
1
…
3
4
5
6
7
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment