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

fix accuracy metric for nested lists of diff lengths #31

Merged
merged 2 commits into from
Aug 2, 2019

Conversation

tholor
Copy link
Member

@tholor tholor commented Aug 1, 2019

This adresses issue #30

The suggested fix is to pad the lists to equal length before converting to a numpy array and then ignoring the PAD elements in the calculation of the metric.

@tholor tholor requested a review from Timoeller August 1, 2019 11:04
farm/metrics.py Outdated Show resolved Hide resolved
@tholor tholor self-assigned this Aug 1, 2019
@tholor tholor added the bug Something isn't working label Aug 1, 2019
@tholor
Copy link
Member Author

tholor commented Aug 1, 2019

Changed it as suggested to a flat list conversion. That's way cleaner now. Please review and merge @Timoeller

Copy link
Contributor

@Timoeller Timoeller left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good.

@tholor tholor merged commit 012e158 into master Aug 2, 2019
@tholor tholor deleted the fix_acc_masked_lm branch August 5, 2019 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants