5 커밋 fbfc1f3f6a ... 64d04a7990

작성자 SHA1 메시지 날짜
  luojunhui 64d04a7990 dev 2 일 전
  luojunhui a04a7efc91 Merge branch '2025-04-21-luojunhui-read-avg-ci-upper' of luojunhui/LongArticlesJob into master 4 일 전
  luojunhui 284d3a7984 开发阅读均值置信度上界代码 4 일 전
  luojunhui 0341fd9499 开发阅读均值置信度上界代码 4 일 전
  luojunhui ac7e5a101f 开发阅读均值置信度上界代码 4 일 전
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
     USING_STATUS = 1
     NOT_USING_STATUS = 0
     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_RATE_TABLE = "long_articles_read_rate"
     ACCOUNT_READ_AVG_TABLE = "account_avg_info_v3"
     ACCOUNT_READ_AVG_TABLE = "account_avg_info_v3"
 
 

+ 4 - 0
updateAccountV3.py

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