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

about the 'NAN’ loss during training #43

Open
XiejcSYSU opened this issue Apr 29, 2020 · 1 comment
Open

about the 'NAN’ loss during training #43

XiejcSYSU opened this issue Apr 29, 2020 · 1 comment

Comments

@XiejcSYSU
Copy link

Hi!why the first version of loss function will cause 'nan' loss during training? Thank you.

@Zhaominghao1314
Copy link

'tf.log' resuts in 'inf', just change to 'maxi = tf.log(tf.clip_by_value(tf.nn.sigmoid(pos_scores - neg_scores),1e-8, 1))' in L284 of NDCG.py

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