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: MCC behavior when division by zero #58

Merged
merged 3 commits into from Nov 5, 2019

Conversation

maxmargraf
Copy link
Contributor

@maxmargraf maxmargraf commented Nov 4, 2019

Added a test and a fix for the behavior of mcc when the predicted series contains only zeros/false. Now a mcc of 0 is returned similar to the edge case handling of scikit-learn.

@codecov-io
Copy link

codecov-io commented Nov 4, 2019

Codecov Report

Merging #58 into master will increase coverage by 0.04%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #58      +/-   ##
==========================================
+ Coverage   62.69%   62.73%   +0.04%     
==========================================
  Files          33       33              
  Lines        1568     1570       +2     
==========================================
+ Hits          983      985       +2     
  Misses        585      585
Impacted Files Coverage Δ
pycomlink/validation/stats.py 90.27% <100%> (+0.27%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0eeb088...4ff847f. Read the comment docs.

@cchwala cchwala changed the title Mcc behavior FIX: MCC behavior when division by zero Nov 5, 2019
@cchwala cchwala merged commit a389135 into pycomlink:master Nov 5, 2019
@maxmargraf maxmargraf deleted the mcc_behavior branch April 14, 2021 15:01
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.

None yet

3 participants