chore: clean up examples, update ML binaries and risk tests

- Delete 14 unused example files (-3,543 lines): config, adaptive-strategy,
  data, storage, trading_engine, api_gateway, backtesting, trading_service, chaos
- Update ML training/eval binaries: improved CLI args, completion tracking,
  CUDA test cleanup, hyperopt enhancements
- Fix KAN network and TFT module adjustments
- Update risk test assertions for consistency
- Fix backtesting repositories and promotion manager
- Update .serena project config and Cargo dependencies

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-02-27 01:33:18 +01:00
parent 1de1769c4f
commit afd85b2f8f
46 changed files with 403 additions and 3544 deletions

View File

@@ -105,6 +105,7 @@ fn build_model_result(
})
}
#[allow(clippy::cognitive_complexity)]
fn run_tft_hyperopt(args: &Args) -> Result<Value> {
info!("========================================");
info!(" TFT Hyperparameter Optimization");
@@ -152,6 +153,7 @@ fn run_tft_hyperopt(args: &Args) -> Result<Value> {
))
}
#[allow(clippy::cognitive_complexity)]
fn run_mamba2_hyperopt(args: &Args) -> Result<Value> {
info!("========================================");
info!(" Mamba2 Hyperparameter Optimization");
@@ -198,6 +200,7 @@ fn run_mamba2_hyperopt(args: &Args) -> Result<Value> {
))
}
#[allow(clippy::cognitive_complexity)]
fn run_liquid_hyperopt(args: &Args) -> Result<Value> {
info!("========================================");
info!(" Liquid Hyperparameter Optimization");
@@ -245,6 +248,7 @@ fn run_liquid_hyperopt(args: &Args) -> Result<Value> {
))
}
#[allow(clippy::cognitive_complexity)]
fn run_tggn_hyperopt(args: &Args) -> Result<Value> {
info!("========================================");
info!(" TGGN Hyperparameter Optimization");
@@ -292,6 +296,7 @@ fn run_tggn_hyperopt(args: &Args) -> Result<Value> {
))
}
#[allow(clippy::cognitive_complexity)]
fn run_tlob_hyperopt(args: &Args) -> Result<Value> {
info!("========================================");
info!(" TLOB Hyperparameter Optimization");
@@ -339,6 +344,7 @@ fn run_tlob_hyperopt(args: &Args) -> Result<Value> {
))
}
#[allow(clippy::cognitive_complexity)]
fn run_kan_hyperopt(args: &Args) -> Result<Value> {
info!("========================================");
info!(" KAN Hyperparameter Optimization");
@@ -386,6 +392,7 @@ fn run_kan_hyperopt(args: &Args) -> Result<Value> {
))
}
#[allow(clippy::cognitive_complexity)]
fn run_xlstm_hyperopt(args: &Args) -> Result<Value> {
info!("========================================");
info!(" xLSTM Hyperparameter Optimization");
@@ -433,6 +440,7 @@ fn run_xlstm_hyperopt(args: &Args) -> Result<Value> {
))
}
#[allow(clippy::cognitive_complexity)]
fn run_diffusion_hyperopt(args: &Args) -> Result<Value> {
info!("========================================");
info!(" Diffusion Hyperparameter Optimization");
@@ -484,6 +492,7 @@ const VALID_MODELS: &[&str] = &[
"tft", "mamba2", "liquid", "tggn", "tlob", "kan", "xlstm", "diffusion",
];
#[allow(clippy::cognitive_complexity)]
fn main() -> Result<()> {
tracing_subscriber::fmt()
.with_max_level(Level::INFO)