Closed BLACKmaba closed 6 years ago
why do this? thank you for your answer. scores = np.dot(norm_feat, feats.T) rank_ID = np.argsort(scores)[::-1] rank_score = scores[rank_ID]
scores = np.dot(norm_feat, feats.T) rank_ID = np.argsort(scores)[::-1] rank_score = scores[rank_ID]
The similarity is measured by cosine similarity. The above lines compute the cosine similarity, then sort the scores.
@snapfinger You are welcome to reopen the issue if you have question.
why do this? thank you for your answer.
scores = np.dot(norm_feat, feats.T) rank_ID = np.argsort(scores)[::-1] rank_score = scores[rank_ID]