去掉中文字符

This commit is contained in:
2025-10-25 19:41:17 +08:00
parent da9a846d01
commit 79a94925cf
3 changed files with 4 additions and 4 deletions

View File

@@ -190,7 +190,7 @@ class SyncOddsjamBetTracker:
try:
# 确保响应已完成
if response.request.failure is None and response.status == 200:
data = response.json() # 注意sync_api 中 .json() 是同步的
data = response.json() # 注意: sync_api 中 .json() 是同步的
self.total_bet_cnt = data["totalCount"]
logger.info(f"total bet count: {self.total_bet_cnt}")

View File

@@ -97,8 +97,8 @@ class DingTalkBot:
if __name__ == "__main__":
webhook = "https://oapi.dingtalk.com/robot/send?access_token=fb70c1561d8beba94b4f11568f4bb15e3ae07ccbdc8ac19676434a9d1cd17546" # 填写你的webhook
secret = "SEC1ae7cd2f1a6f9da3611af37da3e7d954c1e8533fc073c6c8cc5e5af3b6e5926b" # 填写你的加签token如果有否则留空
webhook = "https://oapi.dingtalk.com/robot/send?access_token=fb70c1561d8beba94b4f11568f4bb15e3ae07ccbdc8ac19676434a9d1cd17546"
secret = "SEC1ae7cd2f1a6f9da3611af37da3e7d954c1e8533fc073c6c8cc5e5af3b6e5926b"
# CTA 群机器人
# webhook = "https://oapi.dingtalk.com/robot/send?access_token=87c7abfcdd69b699c32da4e4f5981cd2ca6b0445474fc6ffb36f2ed0f6262fbb"

View File

@@ -49,7 +49,7 @@ def compute_metrics(
# brier score
brier = float(np.mean((p_clip - y) ** 2))
# ECE 计算支持 uniform 或 quantile
# ECE 计算 (支持 uniform 或 quantile)
if bin_strategy == "quantile":
# quantile bin edges
try: