()
| 26 | |
| 27 | |
| 28 | def 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 | |
| 39 | def test_split_deterministic(): |
nothing calls this directly
no test coverage detected