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

请问呢,作业一中word2vec梯度检测错误的原因 #16

Open
Happy-zyy opened this issue Nov 13, 2018 · 1 comment
Open

请问呢,作业一中word2vec梯度检测错误的原因 #16

Happy-zyy opened this issue Nov 13, 2018 · 1 comment

Comments

@Happy-zyy
Copy link

大佬您好,我参考了您得assignment1中得word2vec.py得实现。但是在运行过程中梯度检测报错了。
==== Gradient check for skip-gram ====
Gradient check failed.
First gradient error found at index (0, 0)
Your gradient: -0.087147 Numerical gradient: 1254.567123
我是用py3实现的,之前的所有代码几乎一致,也都正确通过了,唯独这里通过不了。之后我将您的代码直接全部拷贝下来运行,同样报以上错误,请问您知道怎么回事嘛,您当时运行通过了吗?

@Happy-zyy Happy-zyy reopened this Nov 13, 2018
@Happy-zyy
Copy link
Author

不好意思,知道了
gradcheck没有固定随机数。。。

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