-
Notifications
You must be signed in to change notification settings - Fork 19.5k
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
Can't Reproduce the Accuracy for "Pre-trained word embeddings in Keras" Example #5826
Comments
I've run into the same problem. I had updated my keras and theano packages among others because I got a prompt to do so and use "gpuarray". I don't remember the exact reason that was given. After that I noticed that the loss and accuracy in my script using pre-trained glove embeddings seemed significantly worse. So I ran some sample programs from the internet including the pre-trained embeddings example here:
As can be seen from the output the accuracy is way off the expected 95% after 2 epochs. For this output my version of tensorflow is 1.0.1 and the version of keras is 2.0.2. I'd like to point out that when I tried this example in my initial setup I was using theano as the backend and in the new installation I am using tensorflow, this problem shows up in both cases. |
I'm also experiencing this issue. I've even asked a question on stackoverflow. Did you guys get the actual 95% before (before what?) and only now you're seeing these worse results? |
Seems like there are two versions of the newgroups files. One with header, and one without header. The one with header contained the newsgroup in the text, thus it was easy to detect the pattern. See this comment from the pull request with removed the header: |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 30 days if no further activity occurs, but feel free to re-open a closed issue if needed. |
I copied the entire example and ran it in my local. It says in the article that after 2 epochs validation set accuracy is 95%+ but when I tried it it was 20% and after 10 epochs it went around 70%.
I am really curious to know if anybody has ever met the same issue here, and if not what could I possibly have done wrong?
https://blog.keras.io/using-pre-trained-word-embeddings-in-a-keras-model.html
The text was updated successfully, but these errors were encountered: