Browse Source

Update gh reply exp1 sample strategy

StrayWarrior 4 months ago
parent
commit
0a38af0474
2 changed files with 2 additions and 2 deletions
  1. 1 1
      alg_growth_3rd_gh_reply_video_v1.py
  2. 1 1
      alg_growth_gh_reply_video_v1.py

+ 1 - 1
alg_growth_3rd_gh_reply_video_v1.py

@@ -126,7 +126,7 @@ def rank_for_layer1(run_dt, run_hour, project, table, gh):
     np.random.seed(int(dt_version) + 1)
 
     # TODO: 修改权重计算策略
-    df['score'] = df['ros']
+    df['score'] = 1.0
     # 按照 category1 分类后进行加权随机抽样
     sampled_df = df.groupby('category1').apply(
         lambda x: x.sample(n=SEND_N, weights=x['score'], replace=False)).reset_index(drop=True)

+ 1 - 1
alg_growth_gh_reply_video_v1.py

@@ -149,7 +149,7 @@ def rank_for_layer1(run_dt, run_hour, project, table, gh_df):
     np.random.seed(int(dt_version) + 1)
 
     # TODO: 修改权重计算策略
-    df['score'] = df['ros']
+    df['score'] = 1.0
     # 按照 category1 分类后进行加权随机抽样
     sampled_df = df.groupby('category1').apply(
         lambda x: x.sample(n=SEND_N, weights=x['score'], replace=False)).reset_index(drop=True)