-
Notifications
You must be signed in to change notification settings - Fork 12
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
代码结果不好 #2
Comments
Hi, Thanks for your feedback. Could you provide your running command so I can further root cause the issue? Thanks. |
i just run the
|
Thanks! I am sorry that I did not keep this repo updated in the first place. Here is the reason why you experience this catastrophic failure. I updated this repo for other projects by studying different training rates scheduling for different layers, which is not a topic for this paper. And that causes some issues (it seems like from your runs!) If you look at my recent push, I commented out those lines for the PR opened by you: You can do the following things to remediate the catastrophic failure: Since I was working on this repo for other projects, I might forget to remove codes here and there. When I have time, I will update it all at once. Thanks again for your findings! It matters! If you still experience this catastrophic failure, please let me know. If not, please kindly close this issue. Thanks, |
您好,我复现了您的代码,为什么和论文中的结果差距很大,甚至说模型就是无效的,我没有改动您的代码,直接运行的
以下是 CGBERT模型epoch = 29的结果
以下是 QACGBERT模型epoch = 24的结果,以及最后的结果
05/08/2021 00:45:03 - INFO - util.train_helper - ***** Evaluation Interval Hit *****8<00:24, 5.05it/s, train_loss=1.35]
Iteration: 100%|████████████████████████████████████████████████████████████████████████| 167/167 [00:03<00:00, 49.49it/s]
05/08/2021 00:45:07 - INFO - util.train_helper - ***** Evaluation results *****
05/08/2021 00:45:07 - INFO - util.train_helper - epoch = 24████████████████████████▌| 166/167 [00:03<00:00, 42.66it/s]
05/08/2021 00:45:07 - INFO - util.train_helper - global_step = 15750
05/08/2021 00:45:07 - INFO - util.train_helper - loss = 1.4141508170202666
05/08/2021 00:45:07 - INFO - util.train_helper - test_loss = 1.4643629932118034
05/08/2021 00:45:07 - INFO - util.train_helper - test_accuracy = 0.40375
05/08/2021 00:45:07 - INFO - util.train_helper - aspect_P = 0.3350454365863295
05/08/2021 00:45:07 - INFO - util.train_helper - aspect_R = 0.8273170731707317
05/08/2021 00:45:07 - INFO - util.train_helper - aspect_F = 0.47694038245219356
05/08/2021 00:45:07 - INFO - util.train_helper - sentiment_Acc_4_classes = 0.36390243902439023
05/08/2021 00:45:07 - INFO - util.train_helper - sentiment_Acc_3_classes = 0.5220966084275437
05/08/2021 00:45:07 - INFO - util.train_helper - sentiment_Acc_2_classes = 0.6234357224118316
Iteration: 100%|███████████████████████████████████████████████████████| 635/635 [02:29<00:00, 4.25it/s, train_loss=2.04]
Epoch: 100%|███████████████████████████████████████████████████████████████████████████| 25/25 [1:01:38<00:00, 147.94s/it]
05/08/2021 00:45:34 - INFO - util.train_helper - ***** Global best performance *****
05/08/2021 00:45:34 - INFO - util.train_helper - accuracy on dev set: 0.4942233632862644
The text was updated successfully, but these errors were encountered: