浏览代码

video rank

linfan 1 年之前
父节点
当前提交
e08d75534d
共有 1 个文件被更改,包括 2 次插入1 次删除
  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