Browse Source

video rank

linfan 1 year ago
parent
commit
e08d75534d
1 changed files with 2 additions and 1 deletions
  1. 2 1
      video_rank.py

+ 2 - 1
video_rank.py

@@ -614,7 +614,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 = []
     rec_recall_item_list = []
@@ -664,6 +664,7 @@ def video_new_rank2(data, size, top_K, flow_pool_P, ab_code, mid, exp_config=Non
                                 return_score = 0.000000001
                             total_score = return_score * score_result[i][0]
                         rec_recall_item_list[i]['sort_score'] = total_score
+                        print("total_score:", total_score, " model score :", score_result[i][0], "return_score:", return_score)
                 except Exception:
                     if sort_index == 10:
                         total_score = 0.00000001