Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions skillopt_sleep/mine.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,12 @@ def _promote_one(*, to: str, from_splits: set[str]) -> None:
# Only promote from train so hash-assigned test tasks stay untouched.
if len(real) >= 2 and not any(t.split == "val" for t in real):
_promote_one(to="val", from_splits={"train"})
if not any(t.split == "val" for t in real):
import logging
logging.getLogger("skillopt_sleep").warning(
"holdout_leaked: all real tasks hashed to test, pulling one for val"
)
_promote_one(to="val", from_splits={"test"})
# Guarantee a train pool exists when possible; never borrow from test.
if not any(t.split == "train" for t in tasks) and len(real) >= 2:
_promote_one(to="train", from_splits={"val"})
Expand Down