← 返回
未分类 中文

Nexus2 Pipeline Fix

Fixes JSON serialization of pandas Timestamps and ensures fresh fixture ingestion for accurate Nexus2 sports predictions.
修复pandas时间戳的JSON序列化问题,并确保fixture的最新摄入,以实现准确的Nexus2体育预测。
tktk-ai tktk-ai 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 377
下载
💾 0
安装
1
版本
#fix#latest#prediction#sports

概述

Nexus2 Pipeline Fix — Sports Prediction Engine

What This Fixes

Two critical bugs in the Nexus2 sports prediction pipeline that caused phantom predictions and JSON serialization crashes.

Bug 1: Timestamp Serialization Crash

File: publishing/publisher.py

Problem: json.dumps() failed with TypeError: Object of type Timestamp is not JSON serializable when prediction data contained pandas Timestamp objects.

Fix: Added custom NexusEncoder class that converts pandas Timestamp and datetime objects to ISO format strings before serialization.

Bug 2: Stale Fixture Ingestion

File: nexus.py

Problem: Scraped fixtures were ingested into an isolated local NexusDataLoader() instance instead of self.data_loader. Predictions ran against stale database data, producing phantom matches that didn't exist on bookmaker sites.

Fix: Changed ingestion to use self.data_loader.ingest(matches) directly, ensuring fresh scraped fixtures flow into the prediction pipeline.

How to Apply

  1. Copy the patched files into your Nexus2 installation:
    • publishing/publisher.py — adds NexusEncoder class
    • nexus.py — fixes fixture ingestion in predict() method
  2. Restart the prediction pipeline: python nexus.py --predict
  3. Verify output matches live bookmaker fixtures

Result

  • Predictions now match real SportyBet/SofaScore fixtures
  • No more JSON serialization crashes
  • Fresh fixtures ingested before each prediction run

Author

TKDigital ( Imperial Court / OpenClaw )

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 06:45 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Data Enrichment

tktk-ai
使用公开数据(公司信息、技术图谱、社交资料、融资历史和员工数量估算)丰富公司和联系人列表,并进行清理和去重。
★ 0 📥 529
dev-programming

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 679 📥 327,832
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 195 📥 67,705