Work on the ML4SCI DeepLearnHackathon evaluation tasks. Code and measured results only — no datasets or model weights are committed.
Three classes (axion, cdm, no) from simulated strong-lensing images.
| accuracy | F1 | macro AUC | epochs | train time | |
|---|---|---|---|---|---|
| Baseline CNN | 0.8708 | 0.8695 | 0.9601 | 20 | 670 s |
| ResNet18 | 0.9996 | 0.9996 | 1.0000 | 15 | 3150 s |
ResNet18 is ImageNet-initialised with a single-channel stem, 128 px input,
flip and rot90 augmentation, AdamW with a cosine schedule. Both runs are on
MPS. Raw numbers in lensing/results/.
A number that high is a reason for suspicion, not celebration, so it was
checked rather than reported as-is. lensing/verify_leakage_control.py asks
whether validation images are unusually close to training images.
Every pair of images in this dataset has high cosine similarity — they are all simulated lenses with a bright central arc — so a raw similarity figure proves nothing on its own. The discriminating comparison is val→train against train→train nearest-neighbour similarity:
val queries: mean=0.99618 p99=0.99997 max=0.99998
train queries: mean=0.99670 p99=1.00000 max=1.00000
difference in means: -0.000526
Validation images are marginally less similar to the training set than training images are to each other, so there is no validation-specific leakage.
One caveat worth stating plainly: a 1-nearest-neighbour classifier on raw pixels already reaches 0.7167 against a 0.3333 chance baseline. The classes are therefore partly separable without any learning, so the task is easier than a chance-level comparison suggests. The meaningful comparison is the ResNet against the trained CNN baseline — 0.8708 → 0.9996 — not against chance.
Spanish printed books from the 17th century, where the page baseline degrades on marginalia, ornaments and show-through from the reverse page.
renaissance/lines_and_trocr.py adds Tesseract line-box segmentation with a
body-block filter, so recognition runs per text line over the page body rather
than over the whole scan, and provides a TrOCR path for comparison.
The margins between configurations are small — on one book the line pipeline
scored CER 0.1430 against the page baseline's 0.1446, a gap of 0.0016 over 25
pages. A difference that size cannot be read off a mean, so
renaissance/significance.py scores both engines page by page, pairs them on
the same reference page, and reports the paired mean difference with a
bootstrap confidence interval. Run it before believing any configuration is
better than another.
symba/ holds dataset exploration, preprocessing, and a transformer training
script. Exploratory; no result is claimed here.
The datasets are not included. Each task's data comes from the ML4SCI
DeepLearnHackathon challenge for that task. Place it where the script expects
(dataset/train/<class>/*.npy for lensing) and run the script directly.
Reproducing the lensing numbers needs a GPU or Apple MPS; the ResNet run takes about 50 minutes on MPS.