You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calculating rank@k, it is calculated based on the sorted TIA score.
However, the code does not seem to be right because the scores are compared without the softmax applied.
I guess it's an unfair comparison of TIA score.
So i think read_batch_result_file.py function should be changed
# step 2: rank@K
for idx in range(len(text_prod_ids)):
query_id = text_prod_ids[idx] if type == 'txt2img' else image_prod_ids[idx]
doc_id = image_prod_ids[idx] if type == 'txt2img' else text_prod_ids[idx]
dscore = predictions[idx, 1] --> softmax(predictions[idx], axis=-1)[1]
dlabel = labels[idx]
doc = Doc(id=doc_id, score = dscore, label=dlabel)
if query_id in query_dict:
query_dict[query_id].append(doc)
else:
docs = []
docs.append(doc)
query_dict[query_id] = docs
and the AUC is weird too.
# step 3: AUC
for idx in range(len(text_prod_ids)):
y_preds.append(predictions[idx, 1]) --> y_preds.append(softmax(predictions[idx], axis=-1)[1])
y_trues.append(labels[idx])
Is that right?
Thank you
The text was updated successfully, but these errors were encountered:
SeonbeomKim
changed the title
Question about fashionBERT rank@k
Question about fashionBERT Rank@K, AUC
Nov 11, 2020
When calculating rank@k, it is calculated based on the sorted TIA score.
However, the code does not seem to be right because the scores are compared without the softmax applied.
I guess it's an unfair comparison of TIA score.
So i think read_batch_result_file.py function should be changed
and the AUC is weird too.
Is that right?
Thank you
The text was updated successfully, but these errors were encountered: