1
0

5 کامیت‌ها fbfc1f3f6a ... 64d04a7990

نویسنده SHA1 پیام تاریخ
  luojunhui 64d04a7990 dev 10 ماه پیش
  luojunhui a04a7efc91 Merge branch '2025-04-21-luojunhui-read-avg-ci-upper' of luojunhui/LongArticlesJob into master 10 ماه پیش
  luojunhui 284d3a7984 开发阅读均值置信度上界代码 10 ماه پیش
  luojunhui 0341fd9499 开发阅读均值置信度上界代码 10 ماه پیش
  luojunhui ac7e5a101f 开发阅读均值置信度上界代码 10 ماه پیش
2فایلهای تغییر یافته به همراه10 افزوده شده و 0 حذف شده
  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