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
218d105d
Commit
218d105d
authored
May 03, 2021
by
Leo Gao
Browse files
Test bootstrapping
parent
c1822c02
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
tests/test_misc.py
tests/test_misc.py
+10
-0
No files found.
tests/test_misc.py
0 → 100644
View file @
218d105d
import
pytest
import
lm_eval.metrics
as
metrics
def
test_bootstrapping
():
arr
=
list
(
range
(
100
))
expected
=
metrics
.
mean_stderr
(
arr
)
bootstrapped
=
metrics
.
bootstrap_stderr
(
metrics
.
mean
,
arr
)
assert
bootstrapped
==
pytest
.
approx
(
expected
)
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