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

使用自定义数据集,训练过程SpanFPreRecMetric各项指标值均为0该如何解决 #115

Open
JoyJoyJo opened this issue Jul 4, 2022 · 2 comments

Comments

@JoyJoyJo
Copy link

JoyJoyJo commented Jul 4, 2022

使用V0版本代码,更换自定义的数据集,标注方式是BMESO,训练过程SpanFPreRecMetric各项指标值均为0
image
请问使用fastNLP的SpanFPreRecMetric有哪些需要注意的地方吗,或者说是否有朋友遇到同样问题是如何解决的呢?

@JoyJoyJo
Copy link
Author

JoyJoyJo commented Jul 4, 2022

个人理解:主要问题在于模型没能拟合数据
采用了以下方法改善:

  1. 因自定义数据集较小,调整了数据划分为train、dev、test的比例
  2. 修改优化器为Adam
  3. 调整学习率lr

@sunshinezhihuo
Copy link

大佬,你解决了么

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

2 participants