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
a55a5c52
Unverified
Commit
a55a5c52
authored
Feb 04, 2021
by
Leo Gao
Committed by
GitHub
Feb 04, 2021
Browse files
Update arithmetic.py
parent
612c69c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
lm_eval/tasks/arithmetic.py
lm_eval/tasks/arithmetic.py
+3
-3
No files found.
lm_eval/tasks/arithmetic.py
View file @
a55a5c52
...
...
@@ -32,7 +32,7 @@ class Arithmetic(Task):
self
.
_docs
=
[
self
.
load_doc
(
json
.
loads
(
line
))
for
line
in
jsons
]
def
has_training_docs
(
self
):
return
Tru
e
return
Fals
e
def
has_validation_docs
(
self
):
return
True
...
...
@@ -41,10 +41,10 @@ class Arithmetic(Task):
return
False
def
training_docs
(
self
):
return
self
.
_docs
return
NotImplemented
def
validation_docs
(
self
):
return
self
.
_docs
[:
100
]
return
self
.
_docs
def
test_docs
(
self
):
return
NotImplemented
...
...
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