Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
compare_segmentation()converts the defaultminRR=Noneto infinity. After the first match, every unmatched detection then enters the short-RR suppression path and is omitted from the false-positive count. KeepNoneas no filter and apply suppression only when the caller providesminRR.Fixes #85.
Scope
minRRis omitted.minRRvalues.Blast Radius
This changes the default false-positive count,
acc, anderrfromcompare_segmentation(). True-positive counts and sensitivity remain unchanged, and explicitminRRbehavior remains available. The public-data replay establishes changed benchmark values on one ECG record, but no affected publication or clinical conclusion was identified. This correction has not received independent human scientific review.Verification
.venv/bin/python -m pytest -q tests/test_ecg_compare_segmentation.pypassed both focused tests.wfdb.processing.compare_annotationsafter the fix.minRRcontrols retained TP=3 and FP=0..venv/bin/python -m compileall -q biosppy testspassed.