33 lines
819 B
PowerShell
33 lines
819 B
PowerShell
param(
|
|
[string]$Snapshot = "backtest_snapshots\prod.sqlite",
|
|
[string]$Python = ".venv\Scripts\python.exe",
|
|
[int]$Workers = 7
|
|
)
|
|
|
|
$ErrorActionPreference = "Stop"
|
|
$arms = @(
|
|
"production_control",
|
|
"rr_aligned_control",
|
|
"rewrite",
|
|
"soft_zones",
|
|
"confirmed_rounds",
|
|
"gate_v2"
|
|
)
|
|
|
|
foreach ($arm in $arms) {
|
|
$output = "reports\backtest-sr-v2-train-$arm.json"
|
|
Write-Host "Running S/R training arm: $arm"
|
|
& $Python scripts\run_backtest_snapshot.py $Snapshot `
|
|
--workers $Workers `
|
|
--allow-spawn `
|
|
--sr-variant $arm `
|
|
--entry-end 2024-06-30 `
|
|
--sr-audit `
|
|
--out $output
|
|
if ($LASTEXITCODE -ne 0) {
|
|
throw "S/R training arm failed: $arm"
|
|
}
|
|
}
|
|
|
|
Write-Host "Training matrix complete. Lock one arm before running validation."
|