- Archive: 85 agent .txt files → docs/archive/agents/legacy_txt/ - Scripts: Move 110 shell scripts → scripts/ (keep deploy.sh in root) - Models: Move 18 .safetensors → ml/models/checkpoints/training_artifacts/ - Delete: 34 directories (~33GB freed) - target/, coverage_*, test artifacts - Build: Clean 14 build artifacts (.rlib, .o, .pid, binaries) - Tests: Move 14 .rs files → tests/standalone/ - SQL: Move 5 files → sql/ (keep init-db*.sql for Docker) - Wave 153: Archive to docs/archive/historical/wave153/ - Docs: Archive 9 markdown files to wave_d/reports/ and historical/ Total impact: ~34GB freed (both waves), root directory cleaned from 583 to ~40 essential files Directory count reduced from 65 to 31 (52% reduction) All historical data preserved in organized archive structure
155 lines
6.8 KiB
Bash
Executable File
155 lines
6.8 KiB
Bash
Executable File
#!/bin/bash
|
|
# Backtest all DQN trial checkpoints to determine best hyperparameters
|
|
|
|
set -e
|
|
|
|
RESULTS_FILE="dqn_backtest_results.json"
|
|
echo "[" > $RESULTS_FILE
|
|
|
|
echo 'Backtesting trial 0...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_0/checkpoint_epoch_10.safetensors
|
|
|
|
echo 'Backtesting trial 1...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_1/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 10...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_10/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 11...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_11/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 12...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_12/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 13...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_13/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 14...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_14/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 15...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_15/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 16...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_16/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 17...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_17/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 18...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_18/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 19...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_19/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 2...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_2/checkpoint_epoch_10.safetensors
|
|
|
|
echo 'Backtesting trial 20...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_20/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 21...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_21/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 22...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_22/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 23...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_23/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 24...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_24/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 25...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_25/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 26...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_26/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 27...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_27/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 28...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_28/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 29...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_29/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 3...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_3/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 30...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_30/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 31...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_31/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 32...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_32/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 33...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_33/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 34...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_34/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 35...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_35/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 4...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_4/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 5...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_5/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 6...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_6/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 7...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_7/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 8...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_8/checkpoint_epoch_50.safetensors
|
|
|
|
echo 'Backtesting trial 9...'
|
|
# TODO: Add actual backtest command here
|
|
# cargo run --example backtest_dqn -- --checkpoint ml/tuning_checkpoints/trial_9/checkpoint_epoch_50.safetensors
|
|
|
|
echo "]" >> $RESULTS_FILE
|
|
echo "Results saved to $RESULTS_FILE"
|