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

Patches, slides, patients and hospitals

A patch is a small square of tissue. Patches come from slides, slides from patients, and patients from hospitals. In this data set {{ p2.hier.n_patches|count }} patches come from {{ p2.hier.n_slides|count }} annotated slides, which come from {{ p2.hier.n_patients|count }} patients at {{ p2.hier.n_hospitals|count }} hospitals.

Neighboring patches from one slide look alike, so a model that has seen some of a slide can recognize the rest of it. Most patients contributed a single annotated slide: {{ p2.hier.single_slide_patients|count }} of {{ p2.hier.n_patients|count }}. So the patient level differs from the slide level for only {{ p2.hier.multi_slide_patients|count }} patients. Both levels are kept so that no patient can sit on both sides of a split.

Hospitals, drawn with width proportional to their number of patches One box per hospital, labeled with its number of patches, slides and patients. {% for h in p2.hier.boxes %} Hospital {{ h.hospital }} {{ h.patches|count }} patches {{ h.slides|count }} slides {{ h.patients|count }} patients {% endfor %}
Each box is one hospital; its width is proportional to its number of patches, and its counts sit below it. Counted from the metadata of the data set, not assumed.

Slides are very uneven. The smallest has {{ p2.hier.patches_per_slide.min|count }} patches and the largest {{ p2.hier.patches_per_slide.max|count }}, and most slides are almost entirely tumor or entirely normal. That makes single folds noisy, so the pooled result is reported with intervals instead.