Repository navigation
build(deps): calibrax 0.1.17, so tied scores count half a pair - #39
Merged
Merged
Conversation
ExactAUROC delegates to calibrax's roc_auc. Before calibrax 0.1.17 a run of tied scores became several points of the ROC curve, so the area depended on the order of the tied records: with scores 0.5, 0.5, 0.2, 0.8 and the tied pair one positive and one negative, it was 1.0 in one order and 0.75 in the other, and every score tied gave 1.0. calibrax 0.1.17 gives a run of ties one point, so a tied positive-negative pair counts half, the Mann-Whitney midrank convention: 0.875 in both orders, and 0.5 when every score is tied. Two tests pin those values. The calibrax floor moves to 0.1.17 from 0.1.9, and the substrax floor to 0.1.25, the release calibrax 0.1.17 requires; the lock takes both. Every substrax name the tree imports resolves against it. Three more values DiffBio reports change with calibrax's fixes since 0.1.9, recorded in the CHANGELOG: silhouette and Calinski-Harabasz read labels as names, the batch-correction mmd is MMD_b, and the masked mse and mae ignore a non-finite value at a masked-out position.
mahdi-shafiei
force-pushed
the
build/calibrax-0.1.17
branch
from
November 7, 2026 00:44
c3df40c to
1d8b6fc
Compare
mahdi-shafiei
marked this pull request as ready for review
November 7, 2026 01:05
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.
Summary
ExactAUROCdelegates to calibrax'sroc_auc. Before calibrax 0.1.17 a run of tied scores became several points of the ROC curve, so the area depended on the order of the tied records. 0.1.17 gives a run of ties one point, so a tied positive-negative pair counts half (the Mann-Whitney midrank convention). substrax moves to 0.1.25 because calibrax 0.1.17 requires it.Evidence
Before (calibrax 0.1.9), scores
0.5, 0.5, 0.2, 0.8:test_a_tied_pair_counts_half_whatever_its_orderreturned 1.0 with labels1, 0, 0, 1and 0.75 with0, 1, 0, 1.test_every_score_tied_is_one_halfreturned 1.0.After (calibrax 0.1.17): 0.875 in both orders and 0.5, exactly.
Locally on this branch, CPU: tests/losses 157 passed, tests/benchmarks 400, tests/utils 38, tests/pipelines 139, tests/operators 1,703, and the ownership test 1. pre-commit and
uv lock --checkpass. Every substrax name the tree imports resolves against 0.1.25.Merge danger
Door: two-way.
Blast radius: four kinds of value DiffBio reports, each a calibrax fix since 0.1.9 (the CHANGELOG entry lists them):
ExactAUROCsilhouette_score,calinski_harabasz_score{0, 2}) no longer count a cluster twice; match scikit-learnmmdMMD_b(Gretton et al. 2012)masked_value_loss,MaskedValueLoss,compute_chromatin_guidance_loss(maskedmse/mae)NaN(or, formae, a wrong value)The softmax cross-entropy,
entropyand unmaskedmsecall sites are unchanged. The example pages print silhouette and MMD values from 2026-03-19; whether they move is checked by rerunningexamples/ecosystem/calibrax_metrics.pyandscvi_benchmark.pybefore this leaves draft.