|
@@ -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)
|