Files
foxhunt/crates/ml/src/validation/mod.rs
jgrusewski 450c23a6d0 refactor(cuda): eliminate all CPU fallbacks — CUDA mandatory across ML stack
- Remove ALL #[cfg(feature = "cuda")] guards (~400+ occurrences)
- Remove ALL #[cfg_attr(not(feature = "cuda"), ignore)] test annotations (~250)
- Make cuda default feature in 9 ML crates (ml, ml-core, ml-dqn, ml-ppo, etc.)
- Convert nvrtc JIT compilation to precompiled nvcc (searchsorted, prefix_sum)
- Move compile_ptx_for_device() to ml-core for shared access
- Delete dead CPU code: multi_step.rs, self_supervised_pretraining.rs,
  training_guard_gpu_tests.rs, CPU PER buffer paths, CPU Q-diagnostics
- Replace unwrap_or(Device::Cpu) with hard errors everywhere
- Remove dead is_cuda() else branches in DQN/PPO/hyperopt trainers
- Change config defaults from "cpu" to "cuda" (rainbow, tlob, pipeline)
- Port IQL value network to GPU kernel (5 CUDA entry points)
- Port HER goal relabeling to GPU kernel (warp-per-sample)
- Wire DSR GPU-to-CPU sync in training loop
- cfg!(feature = "cuda") → true in inference_validator

Zero warnings, zero errors across entire workspace.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 21:01:28 +01:00

36 lines
1.1 KiB
Rust

//! Statistical and Financial Validation Module
//!
//! Facade re-exporting core algorithms from `ml-validation` plus bridge
//! modules that depend on DQN/PPO types internal to this crate.
// Re-export everything from the ml-validation sub-crate.
pub use ml_validation::*;
// Bridge modules that stay in ml (DQN/PPO coupling)
pub mod adapters;
pub mod financial;
pub mod harness;
pub mod ppo_adapter;
pub mod regime_analysis;
// Re-export DQN strategy adapter
pub use adapters::DqnStrategy;
// Re-export PPO strategy adapters
pub use ppo_adapter::{PpoLstmStrategy, PpoStrategy};
// Re-export per-regime performance analysis
pub use regime_analysis::{per_regime_breakdown, RegimeMetrics};
// Re-export GPU-accelerated regime breakdown
pub use regime_analysis::per_regime_breakdown_gpu;
// Re-export validation harness
pub use harness::{ValidationHarness, ValidationHarnessConfig, ValidationReport, ValidationVerdict};
// Re-export financial validation for backward compatibility
pub use financial::{
validate_model_basic, validate_model_comprehensive, validate_type_conversions,
FinancialValidationResult, ValidationResult,
};