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

deepke训练模型,训练完成精度始终为0 #595

Closed
humengzi opened this issue Oct 23, 2024 · 5 comments
Closed

deepke训练模型,训练完成精度始终为0 #595

humengzi opened this issue Oct 23, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@humengzi
Copy link

Describe the bug

A clear and concise description of what the bug is.
我用的是bert模型,所有的配置项都没改,然后batch_size设为64,epoch50,数据集采用的也是官网文档推荐的数据集,目前训练的是ner任务。然后我用自建数据集测试过也是全为0,我想问是不是某个参数设置的不对

Environment (please complete the following information):

  • OS: [e.g. mac / window]
  • Python Version [e.g. 3.6]

Screenshots

If applicable, add screenshots to help explain your problem.
这是loss曲线
image

Additional context

Add any other context about the problem here.

@humengzi humengzi added the bug Something isn't working label Oct 23, 2024
@humengzi
Copy link
Author

opt/conda/lib/python3.8/site-packages/seqeval/metrics/v1.py:57: UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 in labels with no predicted samples. Use zero_division parameter to control this behavior.
_warn_prf(average, modifier, msg_start, len(result))
/opt/conda/lib/python3.8/site-packages/seqeval/metrics/v1.py:57: UndefinedMetricWarning: Precision and F-score are ill-defined and being set to 0.0 due to no predicted samples. Use zero_division parameter to control this behavior.
_warn_prf(average, modifier, msg_start, len(result))
[2024-10-22 03:07:42,471][main][INFO] -
precision recall f1-score support

     LOC       0.00      0.00      0.00      1799
     ORG       0.00      0.00      0.00       976
     PER       0.00      0.00      0.00       882

micro avg 0.00 0.00 0.00 3657
macro avg 0.00 0.00 0.00 3657
weighted avg 0.00 0.00 0.00 3657

[2024-10-22 03:07:42,472][main][INFO] - ***** Eval results *****
[2024-10-22 03:07:42,472][main][INFO] -
precision recall f1-score support

     LOC       0.00      0.00      0.00      1799
     ORG       0.00      0.00      0.00       976
     PER       0.00      0.00      0.00       882

micro avg 0.00 0.00 0.00 3657
macro avg 0.00 0.00 0.00 3657
weighted avg 0.00 0.00 0.00 3657

@Timmy-love-you
Copy link

我也发现了,怎么训练都毫无效果。

@humengzi
Copy link
Author

humengzi commented Nov 1, 2024 via email

@zxlzr
Copy link
Contributor

zxlzr commented Nov 1, 2024

抱歉,可能我们readme没写清楚导致您训练遇到一些不便。如果您还有其他问题欢迎随时交流

@zxlzr
Copy link
Contributor

zxlzr commented Dec 25, 2024

https://github.com/zjunlp/DeepKE/blob/main/example/ner/standard/README_CN.md 我们已更新readme便于大家使用bert训练ner模型,如有任何问题欢迎提issue

@zxlzr zxlzr closed this as completed Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants