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
fc5019ea
Unverified
Commit
fc5019ea
authored
Apr 29, 2025
by
Baber Abbasi
Committed by
GitHub
Apr 29, 2025
Browse files
use np.NaN (#2937)
parent
e4a7b69f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
lm_eval/tasks/bbq/utils.py
lm_eval/tasks/bbq/utils.py
+3
-0
No files found.
lm_eval/tasks/bbq/utils.py
View file @
fc5019ea
...
@@ -4,6 +4,9 @@ import datasets
...
@@ -4,6 +4,9 @@ import datasets
import
numpy
as
np
import
numpy
as
np
if
np
.
__version__
>=
"2.0"
:
np
.
NaN
=
np
.
nan
# Possible unknown responses, copied from the HELM implementation
# Possible unknown responses, copied from the HELM implementation
UNKNOWN_RESPONSES
=
[
UNKNOWN_RESPONSES
=
[
"Unknown"
,
"Unknown"
,
...
...
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