feat(ml): scaffold sub-crate directory structure for ml split

Add 5 empty sub-crates (ml-core, ml-dqn, ml-ppo, ml-supervised, ml-infra)
to workspace. Modules will be moved from monolithic ml crate in subsequent
tasks.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
jgrusewski
2026-03-07 22:07:31 +01:00
parent 092b1d2a24
commit e440de4c6b
11 changed files with 117 additions and 0 deletions

View File

@@ -109,6 +109,11 @@ members = [
"crates/risk-data",
"crates/trading-data",
"crates/ml",
"crates/ml-core",
"crates/ml-dqn",
"crates/ml-ppo",
"crates/ml-supervised",
"crates/ml-infra",
"crates/ml-data",
"crates/data",
"crates/backtesting",
@@ -384,6 +389,11 @@ risk = { path = "crates/risk" }
risk-data = { path = "crates/risk-data" }
backtesting = { path = "crates/backtesting" }
ml = { path = "crates/ml", default-features = false }
ml-core = { path = "crates/ml-core" }
ml-dqn = { path = "crates/ml-dqn" }
ml-ppo = { path = "crates/ml-ppo" }
ml-supervised = { path = "crates/ml-supervised" }
ml-infra = { path = "crates/ml-infra" }
common = { path = "crates/common" }
storage = { path = "crates/storage" }
market-data = { path = "crates/market-data" }

19
crates/ml-core/Cargo.toml Normal file
View File

@@ -0,0 +1,19 @@
[package]
name = "ml-core"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
publish.workspace = true
keywords.workspace = true
categories.workspace = true
description = "Shared ML types, traits, features, and data loading"
[dependencies]
[lints]
workspace = true

View File

@@ -0,0 +1 @@
// Modules will be moved here from ml crate

20
crates/ml-dqn/Cargo.toml Normal file
View File

@@ -0,0 +1,20 @@
[package]
name = "ml-dqn"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
publish.workspace = true
keywords.workspace = true
categories.workspace = true
description = "DQN reinforcement learning"
[dependencies]
ml-core.workspace = true
[lints]
workspace = true

1
crates/ml-dqn/src/lib.rs Normal file
View File

@@ -0,0 +1 @@
// Modules will be moved here from ml crate

View File

@@ -0,0 +1,23 @@
[package]
name = "ml-infra"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
publish.workspace = true
keywords.workspace = true
categories.workspace = true
description = "Training infrastructure (hyperopt, ensemble, trainers)"
[dependencies]
ml-core.workspace = true
ml-dqn.workspace = true
ml-ppo.workspace = true
ml-supervised.workspace = true
[lints]
workspace = true

View File

@@ -0,0 +1 @@
// Modules will be moved here from ml crate

20
crates/ml-ppo/Cargo.toml Normal file
View File

@@ -0,0 +1,20 @@
[package]
name = "ml-ppo"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
publish.workspace = true
keywords.workspace = true
categories.workspace = true
description = "PPO reinforcement learning"
[dependencies]
ml-core.workspace = true
[lints]
workspace = true

1
crates/ml-ppo/src/lib.rs Normal file
View File

@@ -0,0 +1 @@
// Modules will be moved here from ml crate

View File

@@ -0,0 +1,20 @@
[package]
name = "ml-supervised"
version.workspace = true
edition.workspace = true
rust-version.workspace = true
authors.workspace = true
license.workspace = true
repository.workspace = true
homepage.workspace = true
documentation.workspace = true
publish.workspace = true
keywords.workspace = true
categories.workspace = true
description = "Supervised models (TFT, Mamba, Liquid, TGGN, TLOB, KAN, xLSTM, Diffusion)"
[dependencies]
ml-core.workspace = true
[lints]
workspace = true

View File

@@ -0,0 +1 @@
// Modules will be moved here from ml crate