mirror of
https://github.com/kenhuangus/wikiskill
synced 2026-09-22 23:34:25 +08:00
WikiSkill: reference implementation of arXiv:2608.27454 (Google Research) - three-layer workspace, evolutionary agents, validation gating
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from wikiskill.metrics import accuracy, paired_bootstrap
|
||||
|
||||
|
||||
def test_accuracy():
|
||||
assert accuracy([True, False, True, True]) == 0.75
|
||||
assert accuracy([]) == 0.0
|
||||
|
||||
|
||||
def test_paired_bootstrap_significant_and_not():
|
||||
a = [True] * 10 + [False] * 0
|
||||
b = [True] * 5 + [False] * 5
|
||||
assert paired_bootstrap(a, b, n=500, seed=1) < 0.05
|
||||
assert paired_bootstrap(a, a, n=200, seed=1) == 1.0
|
||||
Reference in New Issue
Block a user