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

Function test_split_no_overlap

tests/test_data_split.py:28–36  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27
28def test_split_no_overlap():
29 rows = _make_rows()
30 train, cal, holdout = stratified_3way_split(rows, seed=42)
31 train_ids = {r["id"] for r in train}
32 cal_ids = {r["id"] for r in cal}
33 holdout_ids = {r["id"] for r in holdout}
34 assert train_ids.isdisjoint(cal_ids)
35 assert train_ids.isdisjoint(holdout_ids)
36 assert cal_ids.isdisjoint(holdout_ids)
37
38
39def test_split_deterministic():

Callers

nothing calls this directly

Calls 2

stratified_3way_splitFunction · 0.90
_make_rowsFunction · 0.85

Tested by

no test coverage detected