-
Notifications
You must be signed in to change notification settings - Fork 524
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
The accuracy of bert_spc.py is low #27
Comments
plz check the latest committed version |
Ok, thank you, I will try that again. |
666, 最终还是被大佬解决了 |
@songyouwei What are the parameters, with which you achieve accuracy values of over 0.80? I'm using ABSA and aen_bert, with default parameters (which are defined in the argparser in
|
@fhamborg Maybe it's because the batch size is small? What is the performance of this set of parameters on |
Hi, thanks for getting back! With the same parameters, but on
FYI, I attached the full console output: https://gist.github.com/fhamborg/dade525af54a158982967383444fade4 |
Hello, I just cloned the latest repository and checked the code after latest PR . I set the parameters consistent with you and aen_bert's accuracy on restaurant achieves 81+. Here is my training log. |
Hi guys, I've also tested all of the Bert-based models modified by my latest PR, and here are the logs, and it's working really well. I hope it helps. |
Hey @yangheng95 , thanks for the logs! I still haven't figured what exactly the difference; but the only more or less meaningful assumption is due to the random initialization of a few components in pytorch and transformers. Would you be so kind to post your |
Also, could you post the log when running |
Hello @fhamborg , I trained the bert_spc model with 1337 as seed and the result is still very good. |
Hi @yangheng95 , thanks for your reply and verification with seed 1337. I'm using the latest repo, i.e., including the PR to migrate to Also, I managed to train |
@fhamborg Thank you for reporting this issue. I installed it with Try reinstall and use the previous release |
Thanks, you're right, I was using transformers instead of pytorch_transformers. I will check it out now :-) |
Awesome, on
Thanks for the hint, @songyouwei ! Do you have any idea what might be causing this significant difference between whether |
hello @songyouwei ,how to train aen_glove,do I need to modify the code for the train? |
I ran the code of bert_spc.py model, the accuracy rate was 65.8%, F1 was 36.5%. Why the accuracy rate was not so high? I used the restaurant data. Was it because of the data set?
The text was updated successfully, but these errors were encountered: