Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tripletsample_layer.py "negative_label = anchor_label" ??? #3

Closed
LiuJinxue opened this issue Aug 25, 2016 · 1 comment
Closed

tripletsample_layer.py "negative_label = anchor_label" ??? #3

LiuJinxue opened this issue Aug 25, 2016 · 1 comment

Comments

@LiuJinxue
Copy link

what does "negative_label = anchor_label" mean? Is it correct?

@hizhangp
Copy link
Owner

@LiuJinxue The value of negative_label will change in
negative_label = np.random.choice(label_index_map.keys())
it is used to avoid the situation that only one label in a batch.

@hizhangp hizhangp closed this as completed Jan 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants