You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,8 @@ STAMP is an **end‑to‑end, weakly‑supervised deep‑learning pipeline** tha
19
19
* 🎓 **Beginner‑friendly & expert‑ready**: Zero‑code CLI and YAML config for routine use; optional code‑level customization for advanced research.
20
20
* 🧩 **Model‑rich**: Out‑of‑the‑box support for **+20 foundation models** at [tile level](getting-started.md#feature-extraction) (e.g., *Virchow‑v2*, *UNI‑v2*) and [slide level](getting-started.md#slide-level-encoding) (e.g., *TITAN*, *COBRA*).
21
21
* 🔬 **Weakly‑supervised**: End‑to‑end MIL with Transformer aggregation for training, cross‑validation and external deployment; no pixel‑level labels required.
22
-
* 📊 **Stats & results**: Built‑in metrics (AUROC/AUPRC \+ 95% CI) and patient‑level predictions, ready for analysis and reporting.
22
+
* 🧮 **Multi-task learning**: Unified framework for **classification**, **regression**, and **cox-based survival analysis**.
23
+
* 📊 **Stats & results**: Built‑in metrics and patient‑level predictions, ready for analysis and reporting.
23
24
* 🖼️ **Explainable**: Generates heatmaps and top‑tile exports out‑of‑the‑box for transparent model auditing and publication‑ready figures.
24
25
* 🤝 **Collaborative by design**: Clinicians drive hypothesis & interpretation while engineers handle compute; STAMP’s modular CLI mirrors real‑world workflows and tracks every step for full reproducibility.
25
26
* 📑 **Peer‑reviewed**: Protocol published in [*Nature Protocols*](https://www.nature.com/articles/s41596-024-01047-2) and validated across multiple tumor types and centers.
Copy file name to clipboardExpand all lines: getting-started.md
+42Lines changed: 42 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -471,3 +471,45 @@ heatmaps:
471
471
```
472
472
473
473
474
+
## Advanced configuration
475
+
476
+
Advanced experiment settings can be specified under the `advanced_config` section in your configuration file.
477
+
This section lets you control global training parameters, model type, and the target task (classification, regression, or survival).
478
+
479
+
```yaml
480
+
# stamp-test-experiment/config.yaml
481
+
482
+
advanced_config:
483
+
seed: 42
484
+
task: "classification"# or regression/survial
485
+
max_epochs: 32
486
+
patience: 16
487
+
batch_size: 64
488
+
# Only for tile-level training. Reducing its amount could affect
489
+
# model performance. Reduces memory consumption. Default value works
490
+
# fine for most cases.
491
+
bag_size: 512
492
+
#num_workers: 16 # Default chosen by cpu cores
493
+
# One Cycle Learning Rate Scheduler parameters. Check docs for more info.
494
+
# Determines the initial learning rate via initial_lr = max_lr/div_factor
495
+
max_lr: 1e-4
496
+
div_factor: 25.
497
+
# Select a model regardless of task
498
+
# Available models are: vit, trans_mil, mlp
499
+
model_name: "vit"
500
+
501
+
model_params:
502
+
vit: # Vision Transformer
503
+
dim_model: 512
504
+
dim_feedforward: 512
505
+
n_heads: 8
506
+
n_layers: 2
507
+
dropout: 0.25
508
+
use_alibi: false
509
+
```
510
+
511
+
STAMP automatically adapts its **model architecture**, **loss function**, and **evaluation metrics** based on the task specified in the configuration file.
512
+
513
+
**Regression** tasks only require `ground_truth_label`.
0 commit comments