feat: learning engine — multi-armed bandit strategy weight adjustment
This commit is contained in:
parent
1d9900838d
commit
c089bcb92c
6 changed files with 1177 additions and 0 deletions
16
services/learning_engine/config.py
Normal file
16
services/learning_engine/config.py
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
"""Configuration for the learning engine service."""
|
||||
|
||||
from shared.config import BaseConfig
|
||||
|
||||
|
||||
class LearningEngineConfig(BaseConfig):
|
||||
"""Extends BaseConfig with learning-engine-specific settings."""
|
||||
|
||||
learning_rate: float = 0.1
|
||||
min_trades_before_adjustment: int = 20
|
||||
max_weight_shift_pct: float = 0.10
|
||||
weight_floor: float = 0.05
|
||||
recency_decay: float = 0.95
|
||||
evaluation_window_hours: int = 1
|
||||
|
||||
model_config = {"env_prefix": "TRADING_"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue