-
Notifications
You must be signed in to change notification settings - Fork 701
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
Comments
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
micro avg 0.00 0.00 0.00 3657 [2024-10-22 03:07:42,472][main][INFO] - ***** Eval results *****
micro avg 0.00 0.00 0.00 3657 |
我也发现了,怎么训练都毫无效果。 |
我现在已经自己解决了:
1、要么你不要使用bert模型训练,可以使用lstmcrf去做,效果还可以
2、如果坚持使用bert模型训练的话,可以设置use_wandb为True,然后监控一下模型的loss曲线,找到最佳的epoch
同时,自建数据集可以适当降低学习率
…------------------ 原始邮件 ------------------
发件人: "zjunlp/DeepKE" ***@***.***>;
发送时间: 2024年11月1日(星期五) 下午2:51
***@***.***>;
***@***.******@***.***>;
主题: Re: [zjunlp/DeepKE] deepke训练模型,训练完成精度始终为0 (Issue #595)
我也发现了,怎么训练都毫无效果。
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
抱歉,可能我们readme没写清楚导致您训练遇到一些不便。如果您还有其他问题欢迎随时交流 |
https://github.com/zjunlp/DeepKE/blob/main/example/ner/standard/README_CN.md 我们已更新readme便于大家使用bert训练ner模型,如有任何问题欢迎提issue |
Describe the bug
Environment (please complete the following information):
Screenshots
Additional context
The text was updated successfully, but these errors were encountered: