-
Notifications
You must be signed in to change notification settings - Fork 56
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
Code improvements #6
Comments
No problem. You can pull a request.
Best regards.
Qing-Yuan.
…----- Original Message -----
From: Damien Forthomme
[mailto:[email protected]]
To: jiangqy/LSTM-Classification-Pytorch
[mailto:[email protected]]
Cc: Subscribed
[mailto:[email protected]]
Sent: Sat, 06 Apr 2019 16:54:03
+0000
Subject: [jiangqy/LSTM-Classification-Pytorch] Code improvements
(#6)
Hello jiangqy,
Thanks for sharing the code. A quick note, to mention that the code could be
dramatically improved by using a few tricks here and there, in 11-12 epochs.
Using an updated code and the exact same data as you, I get an accuracy of
0.999. Note that I got the same accuracy as described by you in your Readme
the first time I ran your code.
Let me know if you are interested in updating your code and I can start a
pull request. If not, I would like to then create a repo if this example and
the updated code, mentioning you and your repo as well of course.
Cheers!
![LSTM_classifier_06-Apr-04-1554568792](https://user-images.githubusercontent.com/10472425/55672581-6b75fa80-5851-11e9-9be0-4087c5da40f3.png)
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#6
|
Hello Qing-Yuan, Sorry, I had the wrong numbers, I edited my first message. The main changes are about creating my own custom dataset, changing the optimizer and packing the sequences. I cleaned up the repo a bit as well. There are several other things I would like to do with this dataset, but for now I have a running code here. Note that it is the model_upgrade branch. You can see if this is good enough with you or if you want to add other modifications or wait for a bit more improvements if I can. Cheers! Damien |
Hello Qing-Yuan, I have pushed my changes to master on my repo: I can get around 95%-96% accuracy. If you scroll to the end of the readme, you will see that I reference your repo and I mentioned what I changed. Let me know what you think if you have time. Cheers! |
Hello jiangqy,
Thanks for sharing the code. A quick note, to mention that the code could be improved by using a few tricks here and there, in 20 epochs.
Using an updated code and the exact same data as you, I get an accuracy of 0.933. Note that I got the same accuracy as described by you in your Readme the first time I ran your code.
Let me know if you are interested in updating your code and I can start a pull request. If not, I would like to then create a repo if this example and the updated code, mentioning you and your repo as well of course.
Cheers!
The text was updated successfully, but these errors were encountered: