{# REVIEW: the wording of this section was written by the builder, not by the author. #}

The repair attempt

The hospital-level models were retrained with random stain changes in training, on top of the flips and rotations that plain training also gets. In {{ p2.rs.n_excluding_zero|count }} of {{ p2.rs.n|count }} paired comparisons, the interval for the change in AUROC excludes zero. The mean change is {{ p2.rs.mean_delta.s0|num(3) }} for the first seed and {{ p2.rs.mean_delta.s1|num(3) }} for the second.

{% for r in p2.repair.per_hospital %} {% endfor %}
AUROC on the held-out hospital, plain and with stain augmentation; the interval is for the change and resamples that hospital's slides ({{ p2.rs.B|count }} draws)
Held-out hospitalSeedPlainAugmentedChangeInterval of the change
{{ r.hospital }}{{ r.seed }}{{ r.plain|num(3) }}{{ r.aug|num(3) }}{{ r.delta|num(3) }}{{ r.delta_ci|ci(3) }}

The exceptions are hospital{{ "s" if p2.rs.hospitals_without_clear_gain|length != 1 }} {{ p2.rs.hospitals_without_clear_gain|join(", ") }}, where the plain model already reached {% set r = p2.rs.no_gain_plain_range %}{{ r[0]|num(3) }}{% if r[0]|num(3) != r[1]|num(3) %} to {{ r[1]|num(3) }}{% endif %}. The largest change is {{ p2.rs.largest_delta.delta|num(3) }} (hospital {{ p2.rs.largest_delta.hospital }}, seed {{ p2.rs.largest_delta.seed }}); the smallest is {{ p2.rs.smallest_delta.delta|num(3) }}.

How much of the gap closes: pooled over the hospitals, the augmented models reach {{ p2.hl.gap.s0.aug|num(3) }} for the first seed and {{ p2.hl.gap.s1.aug|num(3) }} for the second, against {{ p2.hl.patch|num(3) }} at the patch level. That is most of the gap, not all of it, and the augmented probe still reads the hospital from the features, as shown above.

Caveats