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
5894761a
Commit
5894761a
authored
Feb 21, 2021
by
Jon Tow
Browse files
Remove print statements
parent
41a8b582
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
lm_eval/tasks/drop.py
lm_eval/tasks/drop.py
+0
-1
No files found.
lm_eval/tasks/drop.py
View file @
5894761a
...
...
@@ -127,7 +127,6 @@ class DROP(Task):
scores
=
np
.
zeros
([
len
(
gold_bags
),
len
(
pred_bags
)])
for
gold_index
,
gold_bag
in
enumerate
(
gold_bags
):
for
pred_index
,
pred_bag
in
enumerate
(
pred_bags
):
print
(
self
.
_is_number_match
(
gold_bag
,
pred_bag
))
if
self
.
_is_number_match
(
gold_bag
,
pred_bag
):
scores
[
gold_index
,
pred_index
]
=
self
.
_bag_f1
(
gold_bag
,
pred_bag
)
row_ind
,
col_ind
=
linear_sum_assignment
(
-
scores
)
...
...
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