5 Commits fbfc1f3f6a ... 64d04a7990

Tác giả SHA1 Thông báo Ngày
  luojunhui 64d04a7990 dev 10 tháng trước cách đây
  luojunhui a04a7efc91 Merge branch '2025-04-21-luojunhui-read-avg-ci-upper' of luojunhui/LongArticlesJob into master 10 tháng trước cách đây
  luojunhui 284d3a7984 开发阅读均值置信度上界代码 10 tháng trước cách đây
  luojunhui 0341fd9499 开发阅读均值置信度上界代码 10 tháng trước cách đây
  luojunhui ac7e5a101f 开发阅读均值置信度上界代码 10 tháng trước cách đây
2 tập tin đã thay đổi với 10 bổ sung0 xóa
  1. 6 0
      applications/const/__init__.py
  2. 4 0
      updateAccountV3.py

+ 6 - 0
applications/const/__init__.py

@@ -147,6 +147,12 @@ class UpdateAccountReadAvgTaskConst:
     USING_STATUS = 1
     NOT_USING_STATUS = 0
 
+    # 统计周期
+    STAT_PERIOD = 30
+
+    # default upper_quantile, confidence = 0.95
+    DEFAULT_UPPER_QUANTILE = 0.975
+
     ACCOUNT_READ_RATE_TABLE = "long_articles_read_rate"
     ACCOUNT_READ_AVG_TABLE = "account_avg_info_v3"
 

+ 4 - 0
updateAccountV3.py

@@ -1,4 +1,8 @@
 import time
+
+import numpy as np
+from scipy import stats
+from tqdm import tqdm
 from datetime import datetime, timedelta
 from argparse import ArgumentParser