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
4a64031c
Unverified
Commit
4a64031c
authored
Feb 10, 2021
by
Leo Gao
Committed by
GitHub
Feb 10, 2021
Browse files
Undo change to test
parent
7b649ded
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
tests/test_evaluator.py
tests/test_evaluator.py
+2
-2
No files found.
tests/test_evaluator.py
View file @
4a64031c
...
...
@@ -8,7 +8,7 @@ import pytest
# TODO: more fine grained unit tests rather than this big honking integration
# test once we break evaluator into smaller, more manageable pieces
@
pytest
.
mark
.
parametrize
(
"taskname,Task"
,
[(
'squad'
,
tasks
.
squad
.
SQuAD
)]
)
@
pytest
.
mark
.
parametrize
(
"taskname,Task"
,
tasks
.
TASK_REGISTRY
.
items
()
)
def
test_evaluator
(
taskname
,
Task
):
task_dict
=
tasks
.
get_task_dict
([
taskname
])
lm
=
models
.
get_model
(
'dummy'
)()
...
...
@@ -29,4 +29,4 @@ def test_evaluator(taskname, Task):
lm
.
loglikelihood
=
ll_fn
evaluator
.
evaluate
(
lm
,
task_dict
,
False
,
0
,
10
)
\ No newline at end of file
evaluator
.
evaluate
(
lm
,
task_dict
,
False
,
0
,
10
)
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