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

how to compute the loss? #686

Closed
arianhosseini opened this issue May 1, 2016 · 1 comment
Closed

how to compute the loss? #686

arianhosseini opened this issue May 1, 2016 · 1 comment

Comments

@arianhosseini
Copy link

arianhosseini commented May 1, 2016

Hi, I'm working on a paper, after reading the python code, it looks like the "gradient of loss" is calculated in:
fb = 1. / (1. + exp(-dot(l1, l2b.T)))
gb = (model.neg_labels - fb) * alpha

I want to be able to get the loss of an input and not the gradient of it, is there anyway to get that? is there any function that does so?

thanks for sharing

@menshikh-iv
Copy link
Contributor

Looks like resolved in #1201.

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