Skip to content

Fix TPR and FPR self-loop handling - #27

Open
VictorLiwentao wants to merge 1 commit into
Center-For-Complex-Systems-Science:mainfrom
VictorLiwentao:fix/issue-19-tpr-fpr
Open

VictorLiwentao wants to merge 1 commit into
Center-For-Complex-Systems-Science:mainfrom
VictorLiwentao:fix/issue-19-tpr-fpr

Conversation

@VictorLiwentao

Copy link
Copy Markdown

Fixes issue#19.

Compute_TPR_FPR now consistently ignores diagonal/self-loop entries when computing TP, FP, TN, FN, TPR, and FPR.
which prevents invalid FPR values greater than 1.

Tested:

  • self-loops do not change TPR/FPR
  • issue reproduction now returns FPR = 1 (not >1)
  • all 30 stats tests pass

@kslote1 kslote1 added the Audit v1 label Sep 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants