fix(services): add validation-mod ml feature to trading + backtesting
ml::validation is gated behind validation-mod, but dqn/config.rs:177 references crate::validation::RegimeMetrics unconditionally. Both services pull in dqn::config via the trainer pipeline, so they need the gate opened to compile. Cheaper than refactoring 700+ refs. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -72,7 +72,7 @@ clap = { version = "4.5", features = ["derive"] }
|
||||
# path-form: cargo 1.89's `workspace = true` ignores `default-features = false`,
|
||||
# so we use the explicit path declaration to opt out of `full-stack` and drop
|
||||
# 8 leaf-level ml-* sub-crates that no source file in this service references.
|
||||
ml = { path = "../../crates/ml", default-features = false, features = ["financial", "cuda"] }
|
||||
ml = { path = "../../crates/ml", default-features = false, features = ["financial", "cuda", "validation-mod"] }
|
||||
data.workspace = true
|
||||
common = { workspace = true, features = ["database"] }
|
||||
|
||||
|
||||
@@ -84,7 +84,7 @@ risk.workspace = true
|
||||
# 8 leaf-level ml-* sub-crates (ml-backtesting, ml-paper-trading, ml-stress-testing,
|
||||
# ml-explainability, ml-universe, ml-regime-detection, ml-validation,
|
||||
# ml-data-validation) that no source file in this service references.
|
||||
ml = { path = "../../crates/ml", default-features = false, features = ["financial", "cuda"] }
|
||||
ml = { path = "../../crates/ml", default-features = false, features = ["financial", "cuda", "validation-mod"] }
|
||||
data.workspace = true
|
||||
common = { workspace = true, features = ["database"] }
|
||||
config = { workspace = true, features = ["postgres"] }
|
||||
|
||||
Reference in New Issue
Block a user