Skip to content

A question about sampling #1

Description

@Li-Zheng-94

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':

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions