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
[Bug]: UTC 多标签评价指标有问题 #8381
Labels
bug
Something isn't working
Comments
label在处理的时候有-100(padding字段),这是为了训练的时候不参与损失函数的计算,请参考: |
感谢说明训练时的loss细节, 按照 https://github.com/PaddlePaddle/PaddleNLP/blob/develop/applications/zero_shot_text_classification/README.md 说明,python run_eval.py 是模型评估预测,run_train.py是训练模型代码 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
软件环境
重复问题
错误描述
稳定复现步骤 & 代码
https://github.com/PaddlePaddle/PaddleNLP/blob/develop/applications/zero_shot_text_classification/run_eval.py
def compute_metrics(eval_preds):
注释其中的
preds = preds[labels != -100].numpy()
labels = labels[labels != -100].numpy()
The text was updated successfully, but these errors were encountered: