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

Function test_split_sizes

tests/test_data_split.py:18–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16
17
18def test_split_sizes():
19 rows = _make_rows()
20 train, cal, holdout = stratified_3way_split(rows, seed=42)
21 total = len(train) + len(cal) + len(holdout)
22 assert total == len(rows)
23 assert len(train) >= 10
24 assert len(cal) >= 2
25 assert len(holdout) >= 2
26
27
28def test_split_no_overlap():

Callers

nothing calls this directly

Calls 2

stratified_3way_splitFunction · 0.90
_make_rowsFunction · 0.85

Tested by

no test coverage detected