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

Update run_train.py #8384

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open

Conversation

yekx1912
Copy link

@yekx1912 yekx1912 commented May 8, 2024

PR types

Bug fixes

PR changes

Others

Description

The original code has bugs that caculate wrong f1 score when using utc multi_label train.
preds = preds[labels != -100].numpy()
labels = labels[labels != -100].numpy()
The code above may flatten the matrix to 1D. I modify the code to reshape the matrix to the correct shape.

Copy link

paddle-bot bot commented May 8, 2024

Thanks for your contribution!

@CLAassistant
Copy link

CLAassistant commented May 8, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants