feat: refactor model inference architecture

- Unified inference logic into models/inference.py
- Added InferenceManager for handling DLinear, N-BEATS, and TTM-R2 models
- Updated prediction_service.py and auto_trade_polymarket.py to use the new manager
- Fixed dependency issues (torch, transformers)
- Resolved logger duplication issue
- Verified with test_models_feb_2026.py
This commit is contained in:
crypto_predictor committed 2026-02-11 22:07:32 +08:00
1 parent d34b67f522
commit c0a02868ac
14 files changed
+791 -4284

No files matched your search

+1 -1
View File
@@ -106,7 +106,7 @@ def main():
# 2. 启动自动交易程序
# 使用 -u 参数禁用输出缓冲
trade_cmd = f"{python_exec} -u auto_trade_polymarket.py"
trade_cmd = f"{python_exec} -u trader/auto_trade_polymarket.py"
trade_process = start_process(trade_cmd, "Polymarket 自动交易程序")
log("系统启动完成!", GREEN)