crypto_predictor
c0a02868ac
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
2026-02-11 22:07:32 +08:00
crypto_predictor
233f0c5d10
feat: 添加 Windows 兼容性支持,优化设备选择逻辑
...
- start_system.py: 跨平台进程管理
- Windows 使用 CREATE_NEW_PROCESS_GROUP 和 terminate()
- Unix 使用 setsid 和 killpg
- 自动检测并启用 Windows ANSI 颜色支持
- 设备选择逻辑优化:
- macOS: 优先使用 MPS,回退到 CPU
- Windows/Linux: 强制使用 CPU(无 CUDA 依赖)
- 影响文件:
- api/prediction_service.py
- auto_trade_polymarket.py
- training/config.py
2026-02-07 21:48:06 +08:00
crypto_predictor
8cdfb2a8e2
fix: 统一时区处理,准确率统计使用CST时间分组
...
- 增强 convert_to_cst() 函数,新增 source_tz 参数支持 UTC/ET/CST 输入
- 修改 get_monthly_stats() 使用 CONVERT_TZ 按 CST 月份统计
- 修改 get_daily_stats() 使用 CONVERT_TZ 按 CST 日期分组
- 修改 get_hourly_details() 按 CST 日期筛选和小时排序
- 交易记录使用 source_tz='CST' 避免重复转换
- 前端表头添加'(北京)'时区标注
2026-02-07 18:14:37 +08:00
crypto_predictor
55453d3739
feat(frontend): 添加交易看板,统一时区为CST
...
refactor(db): 移除所有SQLite相关代码,迁移至MySQL
2026-02-07 16:48:14 +08:00
crypto_predictor
59fcb11ffa
接入数据库
2026-02-04 18:35:10 +08:00