瀏覽代碼

Merge branch 'add_sort_recall' of algorithm/rov-server into master

linfan 1 年之前
父節點
當前提交
c8b13a1360
共有 1 個文件被更改,包括 11 次插入2 次删除
  1. 11 2
      video_rank.py

+ 11 - 2
video_rank.py

@@ -607,15 +607,24 @@ def video_new_rank2(data, size, top_K, flow_pool_P, ab_code, exp_config=None):
     redisObj = RedisHelper()
     vidKeys = []
     recall_list = []
+    #全量的是vlog,票圈精选, 334,60057,
+    # 60054: simrecall,
+    # 60052: 票圈精选,融合排序,60053:空置
+    # 60055: video_reall
+    # 60056: get_U2I_reall
     pre_str = "k_p2:"
-    if ab_code == 60052 or ab_code == 60053  or ab_code==60057:
+    if ab_code==60057:
         pre_str = "k_p2:"
+    elif ab_code == 60052:
+        pre_str = "k_p5:"
+    elif ab_code == 60053:
+        pre_str = "k_p8:"
     elif ab_code == 60054:
         pre_str = "k_p3:"
     elif ab_code == 60055:
         pre_str = "k_p4:"
     elif ab_code == 60056:
-        pre_str = "k_p5:"
+        pre_str = "k_p7:"
     #print("pre_str:", pre_str)
     for recall_item in data['rov_pool_recall']:
         if len(recall_item)<=0: