瀏覽代碼

update video_rank.py

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

+ 9 - 9
video_rank.py

@@ -945,14 +945,14 @@ def video_sank_pos_rank(data, size, top_K, flow_pool_P, ab_Code='', exp_config=N
         else:
             recall_dict['return_video_recall'] = return_video_recall
 
-    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.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.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.02), ('rov_recall_region_24h', 1),
-                   ('rov_recall_24h', 1), ('rov_recall_24h_dup', 1)]
+    recall_pos1 = [('rov_recall_region_h',0, 0.98),('rov_recall_24h',0.98, 1),('rov_recall_region_24h',0,1),
+                   ('rov_recall_24h',0,1), ('rov_recall_24h_dup',0,1)]
+    recall_pos2 =  [('rov_recall_region_h',0,0.98),('rov_recall_24h',0.98,1),('rov_recall_region_24h',0,1),
+                   ('rov_recall_24h',0,1),('rov_recall_24h_dup',0,1)]
+    recall_pos3 = [('rov_recall_region_h', 0,0.98), ('rov_recall_24h', 0.98,1), ('rov_recall_region_24h', 0,1),
+                   ('rov_recall_24h', 0,1), ('rov_recall_24h_dup', 0,1)]
+    recall_pos4 = [('rov_recall_region_h', 0,0.98), ('rov_recall_24h', 0,0.02), ('rov_recall_region_24h', 0,1),
+                   ('rov_recall_24h', 0,1), ('rov_recall_24h_dup', 0,1)]
     if exp_config  and 'recall_pos1' in exp_config \
             and 'recall_pos2' in exp_config \
             and 'recall_pos3' in exp_config \
@@ -1010,7 +1010,7 @@ def video_sank_pos_rank(data, size, top_K, flow_pool_P, ab_Code='', exp_config=N
                             exp_recall_dict[per_recall_name] = 1
                         index_pos = 1
                         break
-    #print("rov_recall_rank:", rov_recall_rank)
+    print("rov_recall_rank:", rov_recall_rank)
     if len(rov_recall_rank)<4:
         rov_doudi_rank = region_h_recall_rank + sim_recall + u2i_recall + u2u2i_recall + w2v_recall +return_video_recall+ region_24h_recall_rank + rule_24h_recall_rank + rule_24h_dup_recall_rank
         for recall_item in rov_doudi_rank: