Views
No views yet
MahmoodLab/UNI tile embeddings.cx-uni-abmil-15cohort
and cx-uni-abmil-7cohort
for the most cohort-diverse training distribution.WSI -> tile (224 px @ 0.5 mpp, Macenko-normalized)
-> UNI (frozen) -> (N tiles, 1024)
-> GatedABMIL (this model) -> (17,) CX activity prediction1from huggingface_hub import snapshot_download
2from modeling_cx_abmil import CXEnsemble
3local = snapshot_download("IshaChhikara/cx-uni-abmil-21cohort")
4model = CXEnsemble.from_pretrained(local, device="cpu")
5cx = model.predict(my_uni_embeddings) # (B, N, 1024) -> (B, 17)| Signature | ρ_TCGA | ρ_CPTAC | |Δρ| |
|---|---|---|---|
| CX6 | +0.056 | +0.058 | 0.002 |
| CX3 | +0.114 | +0.102 | 0.012 |
| CX9 | +0.026 | +0.010 | 0.017 |
| CX8 | +0.096 | +0.068 | 0.027 |
| CX2 | +0.053 | +0.013 | 0.040 |
| CX12 | +0.130 | +0.062 | 0.069 |
| CX4 | +0.060 | −0.014 | 0.074 |
| CX1 | +0.137 | +0.056 | 0.081 |
| CX11 | +0.069 | −0.019 | 0.088 |
| CX17 | +0.044 | +0.133 | 0.090 |
| CX16 | +0.078 | +0.176 | 0.098 |
| CX13 | +0.017 | −0.097 | 0.114 |
| CX10 | +0.101 | −0.014 | 0.114 |
| CX5 | +0.147 | +0.021 | 0.125 |
| Variant | n | Mean ρ | H1 hits |
|---|---|---|---|
| 7-cohort | 289 | +0.219 | 3 |
| 15-cohort | 1,454 | +0.138 | 0 |
| 21-cohort | 3,855 | +0.106 | 0 |
modeling_cx_abmil.py — model + CXEnsemble 5-fold ensemble wrapperinference_example.pyconfig.jsonfold0.pt … fold4.ptLICENSE (MIT)