Kaynağa Gözat

udapte video rank

linfan 1 yıl önce
ebeveyn
işleme
73a5f5ae66
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      video_rank.py

+ 1 - 1
video_rank.py

@@ -624,7 +624,7 @@ def video_new_rank2(data, size, top_K, flow_pool_P):
             else:
                 video_score_str = json.loads(video_scores[i])
                 print("video_score_str:", video_score_str)
-                recall_list[i]['sort_score'] = video_score_str
+                recall_list[i]['sort_score'] = video_score_str[0]
          except Exception :
                 recall_list[i]['sort_score'] = 0.0
     #sort_items = sorted(video_items, key=lambda k: k[1], reverse=True)