Thanks for your great work.
I have a question about sampling.
In your paper, you use hard negative (HN) and soft negative(SN) to sample negative items.
"In HN, the negative item in each triplet is selected as the closest to the anchor in a batch."
"SN refers to picking the furthest negative item to the anchor within the batch."
The sampling methods described in the paper and that implemented by the code are opposite. Is there anything wrong in this code?
|
elif metric_samples == 'hard': |
|
elif metric_samples == 'soft': |
Thanks for your great work.
I have a question about sampling.
In your paper, you use hard negative (HN) and soft negative(SN) to sample negative items.
"In HN, the negative item in each triplet is selected as the closest to the anchor in a batch."
"SN refers to picking the furthest negative item to the anchor within the batch."
The sampling methods described in the paper and that implemented by the code are opposite. Is there anything wrong in this code?
semantic_adaptive_margin/model_CVSE.py
Line 727 in 1e8bf2f
semantic_adaptive_margin/model_CVSE.py
Line 730 in 1e8bf2f