MCPcopy Create free account
hub / github.com/CommonstackAI/UncommonRoute / test_split_deterministic

Function test_split_deterministic

tests/test_data_split.py:39–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37
38
39def test_split_deterministic():
40 rows = _make_rows()
41 t1, c1, h1 = stratified_3way_split(rows, seed=42)
42 t2, c2, h2 = stratified_3way_split(rows, seed=42)
43 assert [r["id"] for r in t1] == [r["id"] for r in t2]
44 assert [r["id"] for r in h1] == [r["id"] for r in h2]
45
46
47def test_split_stratified():

Callers

nothing calls this directly

Calls 2

stratified_3way_splitFunction · 0.90
_make_rowsFunction · 0.85

Tested by

no test coverage detected