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

doubt on the gradients #11

Open
maybeluo opened this issue Apr 12, 2015 · 0 comments
Open

doubt on the gradients #11

maybeluo opened this issue Apr 12, 2015 · 0 comments

Comments

@maybeluo
Copy link

According to the models, if we use "margincost", we should get their gradients for positive and negative triplet respectively. But in the code of model.py, take #L1208 in "TrainFn1Member" for example, you add them together before compute their gradients. Because "costl" and "costr" share some varibles, I'm wondering if it can work just like the models defined.

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

1 participant