You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
您好,我正在复现您的代码,请问对文本分类任务是只能实现二分类还是可以实现多分类呢。我用自己的多类数据训练时报错:
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
The text was updated successfully, but these errors were encountered:
您好,我正在复现您的代码,请问对文本分类任务是只能实现二分类还是可以实现多分类呢。我用自己的多类数据训练时报错:
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
The text was updated successfully, but these errors were encountered: