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

Character Error Rate #575

Merged
merged 54 commits into from
Oct 25, 2021
Merged

Character Error Rate #575

merged 54 commits into from
Oct 25, 2021

Conversation

mahinlma
Copy link
Contributor

@mahinlma mahinlma commented Oct 21, 2021

Character Error Rate logic updated

Before submitting

  • Was this discussed/approved via a Github issue? (no need for typos and docs improvements)
  • Did you read the contributor guideline, Pull Request section?
  • Did you make sure to update the docs?
  • Did you write any new necessary tests?

What does this PR do?

Fixes # (issue).

PR review

Anyone in the community is free to review the PR once the tests have passed.
If we didn't discuss your PR in Github issues there's a high chance it will not be merged.

Did you have fun?

Make sure you had fun coding 🙃

Character Error Rate logic updated
@codecov
Copy link

codecov bot commented Oct 21, 2021

Codecov Report

Merging #575 (bc9132c) into master (f100130) will increase coverage by 0%.
The diff coverage is 96%.

@@          Coverage Diff          @@
##           master   #575   +/-   ##
=====================================
  Coverage      95%    95%           
=====================================
  Files         146    148    +2     
  Lines        5052   5108   +56     
=====================================
+ Hits         4807   4861   +54     
- Misses        245    247    +2     

@mahinlma mahinlma changed the title Character Error Rate Character Error Rate - metric Oct 22, 2021
Copy link
Member

@SkafteNicki SkafteNicki left a comment

Choose a reason for hiding this comment

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

So the implementation is already looking great :]
Missing

  • tests
  • bindings in __init__ files
  • sections in documentation
  • entry in CHANGELOG

torchmetrics/functional/text/cer.py Outdated Show resolved Hide resolved
torchmetrics/functional/text/cer.py Outdated Show resolved Hide resolved
torchmetrics/functional/text/cer.py Outdated Show resolved Hide resolved
torchmetrics/text/cer.py Outdated Show resolved Hide resolved
torchmetrics/text/cer.py Outdated Show resolved Hide resolved
torchmetrics/text/cer.py Outdated Show resolved Hide resolved
torchmetrics/text/cer.py Outdated Show resolved Hide resolved
@mahinlma mahinlma changed the title Character Error Rate - metric Character Error Rate Oct 22, 2021
torchmetrics/functional/text/cer.py Outdated Show resolved Hide resolved
torchmetrics/text/cer.py Outdated Show resolved Hide resolved
@mahinlma
Copy link
Contributor Author

@Borda @SkafteNicki , there are 7 workflows awaiting approval. please check and review

@mahinlma mahinlma requested review from Borda and SkafteNicki October 23, 2021 06:04
@SkafteNicki SkafteNicki enabled auto-merge (squash) October 23, 2021 06:20
@mahinlma
Copy link
Contributor Author

@SkafteNicki , pytest with (ubuntu-20.04, 3.9, latest) and pytest (windows-2019, 3.8, minimal) cancelled

10/12 - successful, 2/12 cancelled
Error: The operation was canceled

@Borda
Copy link
Member

Borda commented Oct 23, 2021

pytest with (ubuntu-20.04, 3.9, latest) and pytest (windows-2019, 3.8, minimal) cancelled

shall be fixed now on master... the case is that the newest PT 1.10 takes much longer than others...

@mahinlma
Copy link
Contributor Author

@Borda @SkafteNicki please review and let me know, if any changes need to be updated from my end

@SkafteNicki
Copy link
Member

Hi @mahinlma, PR is overall looking really good.
I have improved testing by comparing to another framework for correctness of the computation.
Hopefully, we can get it merged before the next release this week.

@mergify mergify bot added the ready label Oct 25, 2021
@SkafteNicki SkafteNicki merged commit 3664c7b into Lightning-AI:master Oct 25, 2021
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.

3 participants