refactor(ml): move core types to ml-core + dedup MLError (5a)
Move all inline type definitions from ml/src/lib.rs to ml-core:
MLError, MLResult, Trade, MarketRegime, HealthStatus, Features,
MLModel trait, ModelRegistry, ParallelExecutor, LatencyOptimizer,
TrainingMetrics, ValidationMetrics, InferenceResult, ModelMetadata.
Dedup: consolidate ConfigError{reason}/ConfigurationError(msg) into
single ConfigError(String) tuple variant (was 2 variants, 174 refs).
Cleanup: convert create_hft_* free functions to associated methods
(HFTPerformanceProfile::ultra_low_latency(), ParallelExecutor::hft()).
ml facade re-exports via `pub use ml_core::*`.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -68,6 +68,7 @@ reqwest.workspace = true
|
||||
colored = "2.1" # Terminal color output for evaluation reports
|
||||
|
||||
# Internal workspace crates
|
||||
ml-core.workspace = true
|
||||
config.workspace = true
|
||||
common = { workspace = true, features = ["questdb"] }
|
||||
risk = { path = "../risk" }
|
||||
|
||||
Reference in New Issue
Block a user