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

quality_control: correct the per-class accuracy formula #7640

Merged
merged 3 commits into from
Mar 21, 2024

Conversation

SpecLad
Copy link
Contributor

@SpecLad SpecLad commented Mar 19, 2024

Motivation and context

The current formula used to calculate ConfusionMatrix.accuracy is, in fact, not accuracy, but the Jaccard index. Replace it with the correct formula.

Since the Jaccard index is a useful metric in its own right, calculate it too, but save it in another attribute of ConfusionMatrix.

How has this been tested?

Manual testing.

Checklist

  • I submit my changes into the develop branch
  • I have created a changelog fragment
  • [ ] I have updated the documentation accordingly
  • [ ] I have added tests to cover my changes
  • [ ] I have linked related issues (see GitHub docs)
  • [ ] I have increased versions of npm packages if it is necessary
    (cvat-canvas,
    cvat-core,
    cvat-data and
    cvat-ui)

License

  • I submit my code changes under the same MIT License that covers the project.
    Feel free to contact the maintainers if that's a concern.

@SpecLad SpecLad marked this pull request as ready for review March 19, 2024 16:42
@SpecLad SpecLad requested a review from zhiltsov-max March 19, 2024 16:43
The current formula used to calculate `ConfusionMatrix.accuracy` is, in fact,
not accuracy, but the Jaccard index. Replace it with the correct formula.

Since the Jaccard index is a useful metric in its own right, calculate it too,
but save it in another attribute of `ConfusionMatrix`.
@SpecLad SpecLad requested a review from azhavoro as a code owner March 21, 2024 11:47
Copy link

codecov bot commented Mar 21, 2024

Codecov Report

Merging #7640 (387b720) into develop (dd64046) will increase coverage by 0.00%.
Report is 2 commits behind head on develop.
The diff coverage is 100.00%.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #7640   +/-   ##
========================================
  Coverage    83.46%   83.46%           
========================================
  Files          373      373           
  Lines        39723    39725    +2     
  Branches      3741     3741           
========================================
+ Hits         33154    33156    +2     
  Misses        6569     6569           
Components Coverage Δ
cvat-ui 79.28% <ø> (+<0.01%) ⬆️
cvat-server 87.32% <100.00%> (-0.01%) ⬇️

@zhiltsov-max zhiltsov-max merged commit fc54c47 into cvat-ai:develop Mar 21, 2024
34 checks passed
@SpecLad SpecLad deleted the quality-formulas branch March 21, 2024 15:27
@cvat-bot cvat-bot bot mentioned this pull request Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants