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

这个 deepmatch.utils.sampledsoftmaxloss 的实现是有意为之吗?还是说仅仅是个错误 #106

Open
LebranceBW opened this issue Jan 27, 2025 · 0 comments

Comments

@LebranceBW
Copy link

在调用这个 Loss 进行训练时,发现完全不收敛。翻看源码才发现其实现如下:
deepmatch/utils.py#

def sampledsoftmaxloss(y_true, y_pred):
    return K.mean(y_pred)

如果这是个失误,我可以提一个 PR 来修复它(用 tensorflow 中带的 loss)

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