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

是否可以多分类 #79

Open
buthi opened this issue Apr 13, 2022 · 4 comments
Open

是否可以多分类 #79

buthi opened this issue Apr 13, 2022 · 4 comments

Comments

@buthi
Copy link

buthi commented Apr 13, 2022

您好,我正在复现您的代码,请问对文本分类任务是只能实现二分类还是可以实现多分类呢。我用自己的多类数据训练时报错:
Traceback (most recent call last):
File "run_kbert_cls.py", line 578, in
main()
File "run_kbert_cls.py", line 557, in main
result = evaluate(args, False)
File "run_kbert_cls.py", line 393, in evaluate
print("Acc. (Correct/Total): {:.4f} ({}/{}) ".format(correct/len(dataset), correct, len(dataset)))
ZeroDivisionError: division by zero

@buthi
Copy link
Author

buthi commented Apr 14, 2022

已解决 刚开始没仔细看

@000163
Copy link

000163 commented Nov 10, 2022

已解决 刚开始没仔细看

請問您後來能使用多分類任務嗎

@buthi
Copy link
Author

buthi commented Nov 10, 2022

已解决 刚开始没仔细看

請問您後來能使用多分類任務嗎

可以

@SamIp523
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

3 participants