sepandhaghighi / pycm

Multi-class confusion matrix library in Python
http://pycm.io
MIT License
1.45k stars 124 forks source link

Performance #452

Closed sepandhaghighi closed 2 years ago

sepandhaghighi commented 2 years ago

Reference Issues/PRs

What does this implement/fix? Explain your changes.

Any other comments?

OS: Ubuntu-Latest Python Version: Python 3.7

image

image

Speed-up: ~5.5X


OS: Windows-Latest Python Version: Python 3.8

image

image

Speed-up: ~4.6X


OS: MacOS-Latest Python Version: Python 3.9

image image

Speed-up: ~3.4X

codecov-commenter commented 2 years ago

Codecov Report

Merging #452 (c79116d) into dev (ccfd6e5) will increase coverage by 0.01%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #452      +/-   ##
==========================================
+ Coverage   99.27%   99.27%   +0.01%     
==========================================
  Files          11       11              
  Lines        2434     2436       +2     
  Branches      396      395       -1     
==========================================
+ Hits         2416     2418       +2     
  Misses          6        6              
  Partials       12       12              
Impacted Files Coverage Δ
pycm/pycm_util.py 99.67% <100.00%> (+0.01%) :arrow_up:

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.