File size: 2,238 Bytes
30e5a24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
{
  "format_version": 1,
  "architecture": "SimpleP2G",
  "setting": "single-patch",
  "dataset": "her2st",
  "panel": "hvg",
  "fold": 0,
  "seed": 42,
  "model_config": {
    "decoder_depth": 12,
    "num_genes": 200,
    "hidden_size": 384,
    "cond_size": 2560,
    "num_cond_tokens": 4,
    "num_heads": 6,
    "loss_name": "gaussian_nll",
    "dropout": 0.0
  },
  "input": {
    "representation": "frozen Virchow2 CLS token concatenated with mean patch tokens",
    "embedding_dimension": 2560,
    "image_encoder_weights_included": false
  },
  "output": {
    "num_genes": 200,
    "gene_order": "genes.json",
    "expression_scale": "log2(raw_count + 1)",
    "returns": [
      "expression_mean",
      "log_variance"
    ]
  },
  "checkpoint": {
    "epoch": 37,
    "weights": "ema",
    "selection": "highest validation-slide PCC-200; earliest epoch breaks ties"
  },
  "training": {
    "epochs": 100,
    "batch_size": 256,
    "optimizer": {
      "name": "adamw",
      "lr": 0.0001,
      "weight_decay": 0.05,
      "betas": [
        0.9,
        0.999
      ]
    },
    "loss": "gaussian_nll",
    "precision": "fp16",
    "ema_decay": 0.999,
    "sampling": "pooled spots"
  },
  "split": {
    "training_slides": [
      "SPA119",
      "SPA120",
      "SPA121",
      "SPA122",
      "SPA123",
      "SPA124",
      "SPA125",
      "SPA126",
      "SPA128",
      "SPA129",
      "SPA130",
      "SPA131",
      "SPA132",
      "SPA133",
      "SPA134",
      "SPA135",
      "SPA136",
      "SPA137",
      "SPA138",
      "SPA139",
      "SPA140",
      "SPA141",
      "SPA142",
      "SPA143",
      "SPA144",
      "SPA145",
      "SPA146",
      "SPA147",
      "SPA149",
      "SPA150",
      "SPA151",
      "SPA152",
      "SPA153",
      "SPA154"
    ],
    "validation_slide": "SPA127",
    "test_slide": "SPA148"
  },
  "validation_metrics": {
    "PCC10": 0.43139689241917323,
    "PCC50": 0.20696065692979265,
    "PCC200": 0.0662583081649352,
    "MSE": 0.2628522515296936,
    "MAE": 0.31125587224960327
  },
  "test_metrics": {
    "PCC10": 0.751352123780151,
    "PCC50": 0.6407706227872064,
    "PCC200": 0.3798230854871934,
    "MSE": 0.3085944652557373,
    "MAE": 0.2869880795478821
  }
}