Repository navigation
This release accompanies the revised CRoMa manuscript. The library gains uncertainty and correlation-inference helpers, alternative distances for CRoMa, and probe sweeps that keep their per-sample predictions. nIPD now has a new definition, which changes its values. Mettle-1.5 joins the tile panel, and the TITAN and Prov-GigaPath slide embeddings have been re-extracted to fix faults in the earlier extraction. Each revision analysis is now a reproducible study whose tables and figures are generated from saved outputs.
Changed
- nIPD now measures integrated loss of above-chance performance.
croma.nipdaverages repeats at each sampled confounding level, normalises to baseline, sets gains to zero and integrates the remaining loss over Cramér's V, so its maximum is zero. A late collapse can no longer be cancelled out by an early gain. Published nIPD values and the CRoMa–nIPD correlations change;results/nipd.{csv,json}and the docs explorer are republished. (#267) - TITAN and Prov-GigaPath slide embeddings were re-extracted at slide2vec 7.1.4's presets. TITAN's PANDA slides had been encoded from 224 px tiles while its PAR slides used 448 px, and Prov-GigaPath's slide encoder ran with dropout active. Every slide-level result on PCaBiop and PCaBiop-ISUP has been regenerated, and PCaBiop's ranking by median CRoMa is unchanged. MOOZY, PRISM and PRISM2 are unaffected. (#265, #266)
- Sample distributions are now located through the output layout (
layout.sample_distribution_path) rather than from paths recorded in result rows, so existing runs can be read from any checkout. New runs record repo-relative paths. The CRoMa ridgeline now raises, naming the file, when a scored model has no distribution; previously it dropped that model silently. (#250) - Mettle is published as Mettle-1 (Pre-release), its authors' new name for the same checkpoint. The registry key and all values are unchanged. (#244)
- Mettle-1.5 is flagged for benchmark selection (
benchmark_selection = pathorob-ri) after its authors disclosed using PathoROB RI to select its checkpoint. Its rows are shaded yellow and ranks are not adjusted (ADR-0020). (#254) - The documented rationale for MaRI's automatic τ is corrected in
croma.metrics.tauand the metrics docs. The recommendation to leave τ automatic stands, and no computed value changes. (#226)
Added
-
Alternative distances for CRoMa.
CRoMa.compute(distance=...)accepts"cosine"(the default, unchanged to the bit),"euclidean","manhattan", or a callable that returns a precomputed pairwise distance matrix, for example one computed on a GPU. RI and MaRI are unchanged. (#233, #260) -
Uncertainty and inference helpers in
croma.metrics.bootstrap:- stratified cluster resampling (
strata=,cluster_bootstrap_draws) - per-encoder tail statistics on a shared draw (
shared_draw_tail_statistics) spearman_inferenceandpartial_spearman_inference, with bootstrap CIs and permutation p valuesbenjamini_hochbergCorrelationInference.difference_ci, for paired differences between two correlations computed on the same draw
- stratified cluster resampling (
-
Probe records.
croma.downstream.probe_sweep_with_predictionsreturns aProbeSweepRecordwith each probe's decision margins, held-out rows and chosen regularisation. Its accuracies are bit-identical toprobe_sweep_over_test_sets. Every form of the sweep now takestrain_rows_per_slidefor low-data regimes. (#222) -
Mettle-1.5 (
slideflow-labs/mettle-1.5, pinned and hash-checked) is served as a tile encoder and published on the leaderboard. It ranks second of 27 encoders and joins Mascaret on the Pareto frontier. Adding it leaves every cohort's shared k unchanged. (#243, #245) -
The
reproextra pinsscib-metrics==0.5.10for the batch-ASW and iLISI baselines. This requires Python ≥ 3.11; on 3.10croma[repro]still installs without it. (#230)
Revision studies
Each study writes under output/studies/, checks that it reproduces the published values before reporting, and renders its own supplementary tables and macros:
- score and ranking stability under cohort subsampling, plus frontier membership under fixed and recomputed margins (#224, #259, #261)
- bootstrap uncertainty for per-encoder scores, for Δ = MaRI − RI and for the association table (#235)
- the evidence for the MaRI-versus-RI account (#226)
- CRoMa's ranking under Euclidean and Manhattan distances (#233, #260)
- CRoMa compared with batch-ASW and iLISI (#230)
- the downstream association under a threshold-free score (AUROC), with sensitivity, specificity and low-data results (#227, #236)
- whether low per-sample margins predict shortcut-induced errors (#234)
- robustness fine-tunes compared with their parent encoders (#229)
- slide encoders compared with mean-pooling of their own tile encoders (#228)
- grade-matched SO pools on PCaBiop (#225)
- a pretraining-exposure matrix and the conclusions with exposed encoders dropped, now counting exposure at every training stage (#232, #261)
Paper tooling
- All paper artifacts were brought to the 26- and then the 27-encoder panel, with new split-schedule and acquisition tables and Pareto labels laid out clear of crowded points. (#231, #246)
- Every float now fits the page, and a new
check_paper_layout.pycatches overflow when the roster grows. (#248) - The generators were aligned with the revised manuscript: Spearman's ρ for subsampling ranks, consistent bootstrap seeds and order across tables, fine-tuning changes in nIPD reported in percentage points, a tail-fraction sensitivity table, and corrected dataset descriptions and replay command. (#258, #261, #267)
Fixed
- CI no longer fails on a version bump: the nIPD publication pins its own producer version instead of comparing against the running package. (#204)