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

pos, neg从大到小排序,这里有bug吗 #36

Open
zuowang opened this issue Feb 17, 2017 · 1 comment
Open

pos, neg从大到小排序,这里有bug吗 #36

zuowang opened this issue Feb 17, 2017 · 1 comment

Comments

@zuowang
Copy link

zuowang commented Feb 17, 2017

我的理解是应该pos从小到大排序,neg由大到小排序,这样组成的triplet,loss会比较大

或者考虑所有achor,pos,neg的组合,选择loss比较大的进行训练

@luhaofang
Copy link
Owner

交叉的排序对比,会出现每次训练只对少数大margin的pair进行训练的情况,这样在优化的时候会出现剧烈抖动的情况,并不利于优化。目前的排序方式我认为会平滑些。
全组合当然是最好,但数据量较大时可操作性不强。

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