Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Michal Štefánik
ARQMath-eval
Commits
a8da008d
Commit
a8da008d
authored
Jun 03, 2020
by
Vít Novotný
Browse files
Make TestGetRandomNDCG more benevolent
parent
d2702cf9
Pipeline
#61758
canceled with stage
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
test/test_get_random_ndcg.py
View file @
a8da008d
...
...
@@ -45,7 +45,7 @@ class TestGetRandomNDCG(unittest.TestCase):
ndcg
=
get_ndcg
(
results
,
task
,
subset
)
expected_ndcg
=
get_random_ndcg
(
task
,
subset
)
self
.
assertAlmostEqual
(
expected_ndcg
,
ndcg
,
places
=
3
)
self
.
assertAlmostEqual
(
expected_ndcg
,
ndcg
,
places
=
2
)
def
test_with_topn
(
self
):
ndcg
=
get_random_ndcg
(
'task1'
,
'test'
,
4
)
...
...
Write
Preview
Supports
Markdown
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