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
37d4f617
Unverified
Commit
37d4f617
authored
Feb 26, 2021
by
Leo Gao
Committed by
GitHub
Feb 26, 2021
Browse files
Remove custom fewshot examples
parent
41a94e13
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
lm_eval/tasks/unscramble.py
lm_eval/tasks/unscramble.py
+0
-4
No files found.
lm_eval/tasks/unscramble.py
View file @
37d4f617
...
@@ -48,10 +48,6 @@ class WordUnscrambleTask(Task):
...
@@ -48,10 +48,6 @@ class WordUnscrambleTask(Task):
def
fewshot_description
(
self
):
def
fewshot_description
(
self
):
return
"Please unscramble the letters into a word, and write that word:"
return
"Please unscramble the letters into a word, and write that word:"
def
fewshot_examples
(
self
,
k
):
# Override to avoid error caused by missing `training_docs`.
return
random
.
sample
(
list
(
self
.
validation_docs
()),
k
)
def
doc_to_text
(
self
,
doc
):
def
doc_to_text
(
self
,
doc
):
return
doc
[
"context"
]
return
doc
[
"context"
]
...
...
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