Browse Source

update rec

linfan 1 year ago
parent
commit
216f21647f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      recommend.py

+ 3 - 3
recommend.py

@@ -665,7 +665,7 @@ def video_old_recommend(request_id, mid, uid, size, top_K, flow_pool_P, app_type
                 'flow_pool_recall': recall_result_list[2]
                 'flow_pool_recall': recall_result_list[2]
             }
             }
     # 3. 特征回流
     # 3. 特征回流
-    print(env_dict)
+    #print(env_dict)
     if env_dict:
     if env_dict:
         province_code = client_info.get('provinceCode', '-1')
         province_code = client_info.get('provinceCode', '-1')
         city_code = client_info.get('cityCode', '-1')
         city_code = client_info.get('cityCode', '-1')
@@ -675,8 +675,8 @@ def video_old_recommend(request_id, mid, uid, size, top_K, flow_pool_P, app_type
         rec_recall_list = []
         rec_recall_list = []
         vidKeys = []
         vidKeys = []
         hour_vidKeys = []
         hour_vidKeys = []
-        pre_str = "v_ctr"
-        pre_hour_str = "v_hour_ctr"
+        pre_str = "v_ctr:"
+        pre_hour_str = "v_hour_ctr:"
         for recall_item in data['rov_pool_recall']:
         for recall_item in data['rov_pool_recall']:
             if len(recall_item) <= 0:
             if len(recall_item) <= 0:
                 continue
                 continue