Browse Source

update video_rank

linfan 1 year ago
parent
commit
fec2fa6e88
1 changed files with 1 additions and 4 deletions
  1. 1 4
      video_rank.py

+ 1 - 4
video_rank.py

@@ -615,7 +615,7 @@ def video_new_rank2(data, size, top_K, flow_pool_P, ab_code, mid, exp_config=Non
     sort_index = 0
     if exp_config and "sort_flag" in exp_config:
         sort_index = exp_config["sort_flag"]
-    print("sort_index:", sort_index)
+    #print("sort_index:", sort_index)
     redisObj = RedisHelper()
     vidKeys = []
     for recall_item in rec_recall_item_list:
@@ -637,11 +637,8 @@ def video_new_rank2(data, size, top_K, flow_pool_P, ab_code, mid, exp_config=Non
                         video_score_str = json.loads(video_scores[i])
                         if len(video_score_str)>= sort_index and  len(video_score_str)>0:
                             return_score = video_score_str[sort_index]
-                            print("sort_index:", sort_index, " return_score:", return_score)
-                            print("video_score_str:", video_score_str)
                         else:
                             return_score = 0.000000001
-                        #print("return_score:", return_score, "score:", score_result[i][0],"\t", rec_recall_item_list[i])
                         total_score = return_score * score_result[i][0]
                         rec_recall_item_list[i]['sort_score'] = total_score
                 except Exception: