Files
foxhunt/scripts/run_wave26_p1_12_tests.sh
jgrusewski 2df1ea92e1 feat(ml): WAVE 29 DQN Codebase Cleanup & Refactoring Campaign
BREAKING CHANGES:
- Removed orphaned dqn.rs monolithic trainer (4,975 lines)
- Removed orphaned dqn_ensemble.rs module (816 lines)
- Removed orphaned tft.rs and tft_complete_int8_integration_test.rs
- TFT trainer split into modular directory structure

DQN Module Refactoring:
- Split trainers/dqn.rs into modular structure (config.rs, statistics.rs, trainer.rs)
- Fixed hyperopt 39D search space (continuous params only)
- Boolean flags (use_dueling, use_double_dqn, use_per, use_noisy_nets) are now FIXED architectural decisions
- use_distributional defaults to false (Candle BUG #36 - scatter_add gradient issues)

Clean Module Structure:
- ml/src/trainers/dqn/ directory with proper mod.rs exports
- ml/src/trainers/tft/ directory with config.rs, types.rs, model.rs, trainer.rs, tests.rs
- All P0 features validated: TD-error clamping, batch diversity, LR scheduler, priority staleness

Documentation:
- Added comprehensive docs in docs/codebase-cleanup/
- ADR-001 for DQN refactoring decisions
- Rainbow DQN component matrix and quick reference guides

Build Status: Compiles with zero errors

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-27 23:46:13 +01:00

36 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# WAVE 26 P1.12: Polyak Soft Updates Test Runner
# Run this script to execute the comprehensive TDD test suite
set -e
echo "============================================="
echo "WAVE 26 P1.12: Polyak Soft Updates Tests"
echo "============================================="
echo ""
echo "Running target_update module unit tests..."
cargo test --package ml --lib dqn::target_update::tests --no-fail-fast
echo ""
echo "Running comprehensive TDD tests..."
cargo test --package ml --lib dqn::tests::target_update_comprehensive_tests --no-fail-fast -- --nocapture
echo ""
echo "============================================="
echo "✅ All tests passed!"
echo "============================================="
echo ""
echo "Test Coverage:"
echo " - 13 comprehensive TDD tests"
echo " - Formula verification"
echo " - Boundary conditions"
echo " - Convergence rates"
echo " - Network divergence"
echo ""
echo "Next steps:"
echo " 1. Run hyperopt with 30D search space (includes tau)"
echo " 2. Monitor divergence during training"
echo " 3. Compare tau values: 0.0001, 0.001, 0.005, 0.01"
echo ""