浏览代码

update video_rank

linfan 1 年之前
父节点
当前提交
876d529dd6
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 5 5
      video_rank.py

+ 5 - 5
video_rank.py

@@ -939,13 +939,13 @@ def video_sank_pos_rank(data, size, top_K, flow_pool_P, ab_Code='', exp_config=N
         else:
             recall_dict['u2u2i_recall'] = u2u2i_recall
 
-    recall_pos1 = [('rov_recall_region_h',0.98),('rov_recall_24h',0.2),('rov_recall_region_24h',1),
+    recall_pos1 = [('rov_recall_region_h',0.98),('rov_recall_24h',0.02),('rov_recall_region_24h',1),
                    ('rov_recall_24h',1),('rov_recall_24h_dup',1)]
-    recall_pos2 =  [('rov_recall_region_h',0.98),('rov_recall_24h',0.2),('rov_recall_region_24h',1),
+    recall_pos2 =  [('rov_recall_region_h',0.98),('rov_recall_24h',0.02),('rov_recall_region_24h',1),
                    ('rov_recall_24h',1),('rov_recall_24h_dup',1)]
-    recall_pos3 = [('rov_recall_region_h', 0.98), ('rov_recall_24h', 0.2), ('rov_recall_region_24h', 1),
+    recall_pos3 = [('rov_recall_region_h', 0.98), ('rov_recall_24h', 0.02), ('rov_recall_region_24h', 1),
                    ('rov_recall_24h', 1), ('rov_recall_24h_dup', 1)]
-    recall_pos4 = [('rov_recall_region_h', 0.98), ('rov_recall_24h', 0.2), ('rov_recall_region_24h', 1),
+    recall_pos4 = [('rov_recall_region_h', 0.98), ('rov_recall_24h', 0.02), ('rov_recall_region_24h', 1),
                    ('rov_recall_24h', 1), ('rov_recall_24h_dup', 1)]
     if exp_config  and 'recall_pos1' in exp_config \
             and 'recall_pos2' in exp_config \
@@ -992,7 +992,7 @@ def video_sank_pos_rank(data, size, top_K, flow_pool_P, ab_Code='', exp_config=N
             if len(rov_recall_rank)>12:
                 break
     # print("rov_recall_rank:")
-    print(rov_recall_rank)
+    #print(rov_recall_rank)
     # 流量池
     flow_recall_rank = sorted(data['flow_pool_recall'], key=lambda k: k.get('rovScore', 0), reverse=True)
     # 对各路召回的视频进行去重