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
ec45d0aa
Unverified
Commit
ec45d0aa
authored
Jan 30, 2021
by
Stella Biderman
Committed by
GitHub
Jan 30, 2021
Browse files
Merge pull request #108 from EleutherAI/leogao2-patch-2
Make *_docs not abstract
parents
66558b35
1bf97c9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
lm_eval/base.py
lm_eval/base.py
+3
-6
No files found.
lm_eval/base.py
View file @
ec45d0aa
...
@@ -82,22 +82,19 @@ class Dataset(abc.ABC):
...
@@ -82,22 +82,19 @@ class Dataset(abc.ABC):
"""Whether the task has a test set"""
"""Whether the task has a test set"""
pass
pass
@
abc
.
abstractmethod
def
training_docs
(
self
):
def
training_docs
(
self
):
"""
"""
:return: Iterable[obj]
:return: Iterable[obj]
A iterable of any object, that doc_to_text can handle
A iterable of any object, that doc_to_text can handle
"""
"""
pass
return
[]
@
abc
.
abstractmethod
def
validation_docs
(
self
):
def
validation_docs
(
self
):
pass
return
[]
@
abc
.
abstractmethod
def
test_docs
(
self
):
def
test_docs
(
self
):
pass
return
[]
def
fewshot_examples
(
self
,
k
):
def
fewshot_examples
(
self
,
k
):
if
self
.
_traindocs
is
None
:
if
self
.
_traindocs
is
None
:
...
...
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