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
26e94211
"tests/pipelines/kandinsky2_2/test_kandinsky_combined.py" did not exist on "21e402faa003ce7de2183b3e36a3be05a2a02e03"
Commit
26e94211
authored
Apr 25, 2022
by
cjlovering
Browse files
MRPC with PS integration.
parent
b44aa554
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
16 deletions
+1
-16
lm_eval/tasks/glue.py
lm_eval/tasks/glue.py
+1
-16
No files found.
lm_eval/tasks/glue.py
View file @
26e94211
...
...
@@ -222,7 +222,7 @@ class RTE(PromptSourceTask):
# Similarity and Paraphrase Tasks
class
MRPC
(
Task
):
class
MRPC
(
PromptSource
Task
):
VERSION
=
0
DATASET_PATH
=
"glue"
DATASET_NAME
=
"mrpc"
...
...
@@ -244,21 +244,6 @@ class MRPC(Task):
def
validation_docs
(
self
):
return
self
.
dataset
[
"validation"
]
def
process_results
(
self
,
doc
,
results
):
ll_yes
,
ll_no
=
results
gold
=
doc
[
"label"
]
pred
=
ll_yes
>
ll_no
return
{
"acc"
:
pred
==
gold
,
"f1"
:
(
gold
,
pred
),
}
def
higher_is_better
(
self
):
return
{
"acc"
:
True
,
"f1"
:
True
}
def
aggregation
(
self
):
return
{
"acc"
:
mean
,
"f1"
:
f1_score
}
class
QQP
(
Task
):
VERSION
=
0
...
...
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