luojunhui 1 day ago
parent
commit
64d04a7990
2 changed files with 10 additions and 0 deletions
  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