Training and benchmark sweeps¶
Train one model¶
Run one architecture on one system instance:
The entry point converts the coupling-to-chaos ratio to physical coupling using \(\varepsilon=\rho K\).
Arguments¶
| Argument | Requirement | Meaning |
|---|---|---|
--model |
required | Architecture identifier |
--K |
required | Local-chaos value |
--rho |
required | Coupling-to-chaos ratio |
--N |
required | System size: 8, 16 or 32 |
--seed |
optional | Random seed; default 42 |
--gpu |
optional | CUDA device index; automatic when omitted |
--dataset |
optional | HDF5 path; default data/chaosnetbench_cml.h5 |
--epochs |
optional | Override the 50-epoch budget |
--output-dir |
optional | Base results directory; default results/ |
Supported identifiers are:
dlinear tcn lstm nbeats patchtst itransformer dsformer stid
agcrn graph_wavenet d2stgnn staeformer oracle_gcn
Oracle GCN is a diagnostic control that consumes the ground-truth ring adjacency.
Reproduction tiers¶
scripts/sweep.py defines three executable tiers:
python scripts/sweep.py --tier test
python scripts/sweep.py --tier medium
python scripts/sweep.py --tier full
| Tier | Grid in the public script | Default output |
|---|---|---|
| Test | Graph WaveNet; K = 2.0, ρ = 0.20, N = 8; seed 42 | results/test_run |
| Medium | Graph WaveNet; K = 2.0; all 8 ρ values and all 3 N values; seeds 42–44 | results/medium_run |
| Full | 13 models; 96 system instances; seeds 42–44 | results/full_sweep |
The script labels these as approximate A100 budgets of about 10 minutes, 2 GPU hours and 4,500 GPU hours respectively. These are planning estimates recorded in the source, not guarantees for another machine.
Custom sweep¶
Explicit arguments override the selected tier:
python scripts/sweep.py \
--models graph_wavenet d2stgnn \
--K 2.0 6.5 \
--rho 0.10 0.20 0.30 \
--N 8 16 \
--seeds 42 43 44 \
--gpu 0 \
--output-dir results/custom_sweep
Resume behaviour and outputs¶
Resume behaviour is enabled by default. If
all_results.json already exists, completed keys without an error
entry are skipped. Use --no-resume to disable this behaviour.
Each completed experiment writes a tagged directory containing the trainer
outputs and a compact result.json. The sweep updates
all_results.json after each attempted experiment, allowing an
interrupted grid to continue without rerunning successful keys.