Hierarchical ML Pipeline for trading predictions:
- Level 0: Attention Models (volatility/flow classification)
- Level 1: Base Models (XGBoost per symbol/timeframe)
- Level 2: Metamodels (XGBoost Stacking + Neural Gating)
Key components:
- src/pipelines/hierarchical_pipeline.py - Main prediction pipeline
- src/models/ - All ML model classes
- src/training/ - Training utilities
- src/api/ - FastAPI endpoints
- scripts/ - Training and evaluation scripts
- config/ - YAML configurations
Note: Trained models (*.joblib, *.pt) are gitignored.
Regenerate with training scripts.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
46 lines
621 B
Plaintext
46 lines
621 B
Plaintext
# Core ML dependencies
|
|
numpy>=1.24.0
|
|
pandas>=2.0.0
|
|
scikit-learn>=1.3.0
|
|
scipy>=1.11.0
|
|
|
|
# Deep Learning
|
|
torch>=2.0.0
|
|
torchvision>=0.15.0
|
|
|
|
# XGBoost with CUDA support
|
|
xgboost>=2.0.0
|
|
|
|
# API & Web
|
|
fastapi>=0.104.0
|
|
uvicorn>=0.24.0
|
|
websockets>=12.0
|
|
pydantic>=2.0.0
|
|
python-multipart>=0.0.6
|
|
|
|
# Data processing
|
|
pyarrow>=14.0.0
|
|
tables>=3.9.0
|
|
|
|
# Logging & Monitoring
|
|
loguru>=0.7.0
|
|
python-json-logger>=2.0.7
|
|
|
|
# Configuration
|
|
pyyaml>=6.0
|
|
python-dotenv>=1.0.0
|
|
|
|
# Database
|
|
pymongo>=4.6.0
|
|
motor>=3.3.0
|
|
|
|
# Utilities
|
|
python-dateutil>=2.8.2
|
|
tqdm>=4.66.0
|
|
joblib>=1.3.2
|
|
|
|
# Testing (optional)
|
|
pytest>=7.4.0
|
|
pytest-asyncio>=0.21.0
|
|
httpx>=0.25.0
|