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
cc568ebf
Commit
cc568ebf
authored
Jan 10, 2025
by
Baber
Browse files
nit
parent
d75cbc7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
lm_eval/tasks/humaneval/utils.py
lm_eval/tasks/humaneval/utils.py
+1
-3
No files found.
lm_eval/tasks/humaneval/utils.py
View file @
cc568ebf
...
...
@@ -20,9 +20,7 @@ def pass_at_1(references: list[str], predictions: list[list[str]], k: list[int]
k
=
k
,
)[
0
]
return
{
key
:
val
for
key
,
val
in
res
.
items
()
if
key
in
map
(
lambda
x
:
f
"pass@
{
x
}
"
,
k
)
}
return
res
def
build_references
(
doc
):
...
...
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