|
Download v2_multimodal/README.md from Mikecode123/walnut: direct link, hf CLI and curl.
- Browser
- Download file 2.56 kB
-
https://huggingface.co/Mikecode123/walnut/resolve/main/v2_multimodal/README.md
- Command line
-
hf download hf://Mikecode123/walnut/v2_multimodal/README.md
-
curl -L -o README.md https://huggingface.co/Mikecode123/walnut/resolve/main/v2_multimodal/README.md
2.56 kB
| library_name: pytorch | |
| # v2_multimodal | |
| DenseNet121 multimodal (H&E + p63 + 34bE12 + AMACR) trained on 8 specimens. **Research prototype only. Not clinically validated; no independent test set.** The files in the repo root are earlier, superseded versions (image encoders were not transferred into the old fusion model, and p63 only was used). | |
| Reload with `load_checkpoint()` from the pipeline script; the checkpoint stores config, class map, seed and preprocessing. | |
| # Multimodal DenseNet121 run report | |
| Dataset: 8 specimens (Normal 3, Partial_Restoration 4, Induced_Neoplastic 1); 8 H&E + 24 IHC plates (p63, 34bE12, AMACR). | |
| Augmentation: 100 augmented views per specimen per epoch (each view augments all 4 images). | |
| Training: staged (stage 1 6 epochs frozen backbones, stage 2 6 epochs last dense block); seed 42; molecular branch in fusion: False. | |
| ## Image model - leave-one-specimen-out | |
| ``` | |
| Image model (LOSO): 0/8 specimens correct (accuracy 0.000; 95% Wilson CI 0.00-0.32) | |
| Majority-class baseline under the same LOSO: 0/8 | |
| Confusion matrix (rows=true, cols=pred; order Normal, Partial_Restoration, Induced_Neoplastic): | |
| [[0 3 0] | |
| [4 0 0] | |
| [0 1 0]] | |
| Interpretation: n=8 specimens, Induced_Neoplastic has ONE specimen (no training example when it is held out). This is a pipeline sanity check, NOT evidence of generalisation. | |
| ``` | |
| ## Molecular MLP - leave-one-specimen-out | |
| ``` | |
| Molecular MLP: 0/8 specimens correct (accuracy 0.000; 95% Wilson CI 0.00-0.32) | |
| Majority-class baseline under the same LOSO: 0/8 | |
| Confusion matrix (rows=true, cols=pred; order Normal, Partial_Restoration, Induced_Neoplastic): | |
| [[0 0 3] | |
| [0 0 4] | |
| [0 1 0]] | |
| Interpretation: n=8 specimens, Induced_Neoplastic has ONE specimen (no training example when it is held out). This is a pipeline sanity check, NOT evidence of generalisation. | |
| *** All 5 features are identical for every specimen: this result reflects only the class prior, NOT molecular signal. Do not report it as a modality result. *** | |
| ``` | |
| ## Final model | |
| Trained on all 8 specimens. Checkpoint reload test passed. Training-set predictions are not a performance estimate. | |
| ## Limitations | |
| - Only 8 specimens; one Induced_Neoplastic specimen. No independent test set exists. | |
| - Augmented views of one image are not independent samples; 'train-view accuracy' is not performance. | |
| - Molecular features are constant across specimens (no information); that branch is off. | |
| - Images were cropped from PDF figures; image source/format differences may be learnable shortcuts. | |
| - Not a diagnostic tool; no clinical validity claimed. |