Module harness
Expand description
The spike harness: build the study, drive oniro over the executor, re-rank.
run_spike is the whole pipeline (04-rl-and-oniro.md §B): a search space
from a TOML overlay, a TPE (or random, for the honest comparison) study with
the multi-seed protocol (k tune seeds, paired CRN, an aggregate, disjoint
test seeds), the subprocess executor over the
oniro-trial child (process-per-trial), and the final held-out
re-evaluation stage. It touches oniro
only through the oniro_cli binary named in SpikeConfig::oniro_cli.
Structs§
- Spike
Config - The full configuration of one spike run.
- Spike
Report - The result of a spike run: the study and the (optional) test-seed report.
Enums§
- Sampler
Choice - Which sampler the study uses.
Constants§
- MAX_
CONCURRENT_ DESCRIPTORS - Maximum descriptors held concurrently by one admitted spike.
- MAX_
PARALLELISM - The most concurrent trial processes one spike run may hold open.
- MAX_
TOTAL_ DESCRIPTORS - Maximum descriptor units admitted by one objective lifetime.
- MAX_
TOTAL_ OPERATIONS - Maximum train/eval operations admitted by one objective lifetime.
- MAX_
TOTAL_ PROCESSES - Maximum process invocations admitted by one objective lifetime.
- MAX_
TRIALS - Maximum logical trials admitted by one objective lifetime.
Functions§
- capture_
default_ config - Captures
oniro_cli default-configwith the production output and timeout bounds used by the tune binary. - child_
inputs_ from_ env - Gathers one child invocation’s typed inputs from the executor environment.
- evaluate_
config_ on_ test_ seeds - Evaluates a single, already-complete
RunConfigTOML on the protocol’s disjoint test seeds and returns the same aggregate the tune/test split reports for a tuned trial. - read_
bounded_ text - Reads the base
RunConfigfile without letting its size decide the child’s. - run_
spike - Runs the whole oniro tuning spike and returns its report.
- sibling_
bin - Finds a sibling binary next to the current executable.