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:
1 parent
d34b67f522
commit
c0a02868ac
14 files changed
+791
-4284
No files matched your search
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user