SeaWolf-AI commited on
Commit
8a65d3d
·
verified ·
1 Parent(s): 98be852

refs: add operator reference row across boards

Browse files
Files changed (2) hide show
  1. app.py +15 -11
  2. data/reference_vidraft.json +424 -0
app.py CHANGED
@@ -149,16 +149,18 @@ def _load_references():
149
  그래서 **방법만 가져오고 데이터는 이 부문 것을 쓴다.** 그래야 표에 오른 숫자가
150
  "이 방법이 이 문제에서 어디까지 가는가"를 뜻한다.
151
  """
152
- p = os.path.join(DATA, "reference_entries.json")
153
- if not os.path.exists(p):
154
- return {}
155
- try:
156
- d = json.load(io.open(p, encoding="utf-8"))
157
- except Exception:
158
- return {}
159
  out = {}
160
- for e in d.get("entries", []):
161
- out.setdefault(e["board"], []).append(dict(e, method=d.get("method", "reference")))
 
 
 
 
 
 
 
 
162
  return out
163
 
164
 
@@ -325,9 +327,11 @@ def api_leaderboard(name: str):
325
  # 현업 도구 참조 항목. 기준선과 참가 제출 사이에 놓는다 - 학습하지 않은 선도 아니고
326
  # 이번 회차의 참가자도 아니다. 참가자가 자기 위치를 가늠할 세 번째 좌표다.
327
  for r in references().get(name, []):
328
- rows.append({"method": r["method"], "user": "", "kind": "reference",
 
329
  "mae": r.get("mae"), "auroc": r.get("auroc"),
330
- "prauc": r.get("prauc"), "leak": r.get("leak")})
 
331
  for e in rolled.get("entries", []):
332
  rows.append(dict(e, kind=e.get("kind", "entry")))
333
  # 부문 주지표로 세운다. 분류 전용 부문에서 mae 로 세우면 전부 동률이 된다.
 
149
  그래서 **방법만 가져오고 데이터는 이 부문 것을 쓴다.** 그래야 표에 오른 숫자가
150
  "이 방법이 이 문제에서 어디까지 가는가"를 뜻한다.
151
  """
152
+ # 참조 방법은 여럿일 수 있다. 파일 하나에 방법 하나를 담고, 여기서 다 모은다.
 
 
 
 
 
 
153
  out = {}
154
+ for p in sorted(glob.glob(os.path.join(DATA, "reference_*.json"))):
155
+ try:
156
+ d = json.load(io.open(p, encoding="utf-8"))
157
+ except Exception:
158
+ continue
159
+ for e in d.get("entries", []):
160
+ out.setdefault(e["board"], []).append(
161
+ dict(e, method=d.get("method", "reference"),
162
+ method_en=d.get("method_en") or d.get("method", "reference"),
163
+ ref_note=d.get("note"), ref_note_en=d.get("note_en")))
164
  return out
165
 
166
 
 
327
  # 현업 도구 참조 항목. 기준선과 참가 제출 사이에 놓는다 - 학습하지 않은 선도 아니고
328
  # 이번 회차의 참가자도 아니다. 참가자가 자기 위치를 가늠할 세 번째 좌표다.
329
  for r in references().get(name, []):
330
+ rows.append({"method": r["method"], "method_en": r.get("method_en"),
331
+ "user": "—", "kind": "reference",
332
  "mae": r.get("mae"), "auroc": r.get("auroc"),
333
+ "prauc": r.get("prauc"), "leak": r.get("leak"),
334
+ "note": r.get("ref_note"), "note_en": r.get("ref_note_en")})
335
  for e in rolled.get("entries", []):
336
  rows.append(dict(e, kind=e.get("kind", "entry")))
337
  # 부문 주지표로 세운다. 분류 전용 부문에서 mae 로 세우면 전부 동률이 된다.
data/reference_vidraft.json ADDED
@@ -0,0 +1,424 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "method": "VIDRAFT 3-track ensemble",
3
+ "method_en": "VIDRAFT 3-track ensemble",
4
+ "note": "LEADBOARD 운영측(VIDRAFT)이 이 부문 훈련 자료로만 학습해 낸 성적. 참가 제출이 아니라 참가자가 자기 위치를 가늠할 좌표다.",
5
+ "note_en": "Produced by the operator (VIDRAFT) using this board training split only. A reference coordinate, not a competition entry.",
6
+ "entries": [
7
+ {
8
+ "board": "A2A",
9
+ "n_test": 290,
10
+ "mae": 0.8659724137931034,
11
+ "auroc": 0.6062022296869676,
12
+ "prauc": 0.6829298732740994,
13
+ "exact_hits": 0,
14
+ "exact_rate": 0.0,
15
+ "leak": "clean",
16
+ "baseline_best_mae": 0.8351466106085672,
17
+ "baseline_best_auroc": 0.6119955211528163,
18
+ "noise_floor": 0.41837839103161767
19
+ },
20
+ {
21
+ "board": "ABL1",
22
+ "n_test": 199,
23
+ "mae": 0.8341462311557791,
24
+ "auroc": 0.7514985014985015,
25
+ "prauc": 0.5474450226641286,
26
+ "exact_hits": 0,
27
+ "exact_rate": 0.0,
28
+ "leak": "clean",
29
+ "baseline_best_mae": 0.7779393745231502,
30
+ "baseline_best_auroc": 0.8191808191808192,
31
+ "noise_floor": 0.4588912458471183
32
+ },
33
+ {
34
+ "board": "AChE",
35
+ "n_test": 904,
36
+ "mae": 0.8393725663716813,
37
+ "auroc": 0.7313192254830625,
38
+ "prauc": 0.6753211693994372,
39
+ "exact_hits": 0,
40
+ "exact_rate": 0.0,
41
+ "leak": "clean",
42
+ "baseline_best_mae": 0.8050872164791483,
43
+ "baseline_best_auroc": 0.7328022677661897,
44
+ "noise_floor": 0.46187469497191214
45
+ },
46
+ {
47
+ "board": "ALK",
48
+ "n_test": 153,
49
+ "mae": 0.7929679738562091,
50
+ "auroc": 0.8818996415770609,
51
+ "prauc": 0.9290528993732329,
52
+ "exact_hits": 0,
53
+ "exact_rate": 0.0,
54
+ "leak": "clean",
55
+ "baseline_best_mae": 0.8582590736344116,
56
+ "baseline_best_auroc": 0.814247311827957,
57
+ "noise_floor": 0.742835624347912
58
+ },
59
+ {
60
+ "board": "BRAF",
61
+ "n_test": 183,
62
+ "mae": 0.7978666666666665,
63
+ "auroc": 0.8684544589019358,
64
+ "prauc": 0.9434665174887444,
65
+ "exact_hits": 0,
66
+ "exact_rate": 0.0,
67
+ "leak": "clean",
68
+ "baseline_best_mae": 0.8570106284643041,
69
+ "baseline_best_auroc": 0.7719771501110758,
70
+ "noise_floor": 0.3133348834362967
71
+ },
72
+ {
73
+ "board": "BSubtilis",
74
+ "n_test": 2922,
75
+ "mae": 0.7423006844626967,
76
+ "auroc": 0.664228108397355,
77
+ "prauc": 0.8835266245586377,
78
+ "exact_hits": 0,
79
+ "exact_rate": 0.0,
80
+ "leak": "clean",
81
+ "baseline_best_mae": 0.7765463498385761,
82
+ "baseline_best_auroc": 0.662204431657476,
83
+ "noise_floor": 0.5709551004174094
84
+ },
85
+ {
86
+ "board": "Caco2",
87
+ "n_test": 2339,
88
+ "mae": 1.019671098760154,
89
+ "auroc": 0.6768880530685357,
90
+ "prauc": 0.5654935668784224,
91
+ "exact_hits": 0,
92
+ "exact_rate": 0.0,
93
+ "leak": "clean",
94
+ "baseline_best_mae": 1.0185590058075327,
95
+ "baseline_best_auroc": 0.5895592107554333,
96
+ "noise_floor": 0.7634776494984507
97
+ },
98
+ {
99
+ "board": "CB1",
100
+ "n_test": 216,
101
+ "mae": 0.8621902777777777,
102
+ "auroc": 0.8065392706872371,
103
+ "prauc": 0.8624170136125615,
104
+ "exact_hits": 0,
105
+ "exact_rate": 0.0,
106
+ "leak": "clean",
107
+ "baseline_best_mae": 0.8719908235706619,
108
+ "baseline_best_auroc": 0.789796633941094,
109
+ "noise_floor": 0.5616478439909867
110
+ },
111
+ {
112
+ "board": "CDK2",
113
+ "n_test": 321,
114
+ "mae": 0.794138629283489,
115
+ "auroc": 0.6094410059927301,
116
+ "prauc": 0.4196400776369534,
117
+ "exact_hits": 0,
118
+ "exact_rate": 0.0,
119
+ "leak": "clean",
120
+ "baseline_best_mae": 0.8165537848180889,
121
+ "baseline_best_auroc": 0.6097111700559977,
122
+ "noise_floor": 0.29309743262056304
123
+ },
124
+ {
125
+ "board": "COX2",
126
+ "n_test": 491,
127
+ "mae": 1.003137067209776,
128
+ "auroc": 0.5637133376558984,
129
+ "prauc": 0.7398245207741017,
130
+ "exact_hits": 0,
131
+ "exact_rate": 0.0,
132
+ "leak": "clean",
133
+ "baseline_best_mae": 0.9269477494249706,
134
+ "baseline_best_auroc": 0.6051336816812234,
135
+ "noise_floor": 0.7671300598249152
136
+ },
137
+ {
138
+ "board": "CYP2C9",
139
+ "n_test": 371,
140
+ "mae": 0.4812495956873316,
141
+ "auroc": 0.6433172787477424,
142
+ "prauc": 0.7055842609715128,
143
+ "exact_hits": 0,
144
+ "exact_rate": 0.0,
145
+ "leak": "clean",
146
+ "baseline_best_mae": 0.4743088526790385,
147
+ "baseline_best_auroc": 0.5966586393738711,
148
+ "noise_floor": 0.3504820192518295
149
+ },
150
+ {
151
+ "board": "CYP2D6",
152
+ "n_test": 268,
153
+ "mae": 0.6258701492537314,
154
+ "auroc": 0.518135593220339,
155
+ "prauc": 0.45253405848700917,
156
+ "exact_hits": 0,
157
+ "exact_rate": 0.0,
158
+ "leak": "clean",
159
+ "baseline_best_mae": 0.596600795371179,
160
+ "baseline_best_auroc": 0.570225988700565,
161
+ "noise_floor": 0.65903687863192
162
+ },
163
+ {
164
+ "board": "CYP3A4",
165
+ "n_test": 600,
166
+ "mae": 0.5684899999999999,
167
+ "auroc": 0.626925,
168
+ "prauc": 0.7946883255736534,
169
+ "exact_hits": 0,
170
+ "exact_rate": 0.0,
171
+ "leak": "clean",
172
+ "baseline_best_mae": 0.5737513093544662,
173
+ "baseline_best_auroc": 0.5716875000000001,
174
+ "noise_floor": 0.6276473051863152
175
+ },
176
+ {
177
+ "board": "D2",
178
+ "n_test": 723,
179
+ "mae": 0.5177672199170124,
180
+ "auroc": 0.8683274021352313,
181
+ "prauc": 0.6446849287389285,
182
+ "exact_hits": 0,
183
+ "exact_rate": 0.0,
184
+ "leak": "clean",
185
+ "baseline_best_mae": 0.5160262850998159,
186
+ "baseline_best_auroc": 0.8377246303132114,
187
+ "noise_floor": 0.4241256293439639
188
+ },
189
+ {
190
+ "board": "EGFR",
191
+ "n_test": 1565,
192
+ "mae": 1.0076497124600639,
193
+ "auroc": 0.6173087108625174,
194
+ "prauc": 0.6888778610976851,
195
+ "exact_hits": 0,
196
+ "exact_rate": 0.0,
197
+ "leak": "clean",
198
+ "baseline_best_mae": 0.9960533038964834,
199
+ "baseline_best_auroc": 0.5653230349871636,
200
+ "noise_floor": 0.8881466464306685
201
+ },
202
+ {
203
+ "board": "FLT3",
204
+ "n_test": 853,
205
+ "mae": 1.0148672919109027,
206
+ "auroc": 0.6723512006373051,
207
+ "prauc": 0.7464821197472932,
208
+ "exact_hits": 0,
209
+ "exact_rate": 0.0,
210
+ "leak": "clean",
211
+ "baseline_best_mae": 0.9858170086772374,
212
+ "baseline_best_auroc": 0.6213980880846706,
213
+ "noise_floor": 0.6601522287378142
214
+ },
215
+ {
216
+ "board": "HER2",
217
+ "n_test": 236,
218
+ "mae": 0.9091453389830508,
219
+ "auroc": 0.8288824383164006,
220
+ "prauc": 0.8404077766165345,
221
+ "exact_hits": 0,
222
+ "exact_rate": 0.0,
223
+ "leak": "clean",
224
+ "baseline_best_mae": 0.9163787230821009,
225
+ "baseline_best_auroc": 0.7604136429608127,
226
+ "noise_floor": 0.4979961818213226
227
+ },
228
+ {
229
+ "board": "hERG",
230
+ "n_test": 1338,
231
+ "mae": 0.5808455156950673,
232
+ "auroc": 0.657723513593163,
233
+ "prauc": 0.7175507869605954,
234
+ "exact_hits": 0,
235
+ "exact_rate": 0.0,
236
+ "leak": "clean",
237
+ "baseline_best_mae": 0.5887837936811489,
238
+ "baseline_best_auroc": 0.6063324246666175,
239
+ "noise_floor": 0.4210538663630575
240
+ },
241
+ {
242
+ "board": "HT2A",
243
+ "n_test": 603,
244
+ "mae": 1.1663918739635157,
245
+ "auroc": 0.7331079558260085,
246
+ "prauc": 0.796325312626602,
247
+ "exact_hits": 0,
248
+ "exact_rate": 0.0,
249
+ "leak": "clean",
250
+ "baseline_best_mae": 1.0750628226185892,
251
+ "baseline_best_auroc": 0.789080459770115,
252
+ "noise_floor": 0.33410670571983075
253
+ },
254
+ {
255
+ "board": "JAK2",
256
+ "n_test": 1288,
257
+ "mae": 1.0414260869565217,
258
+ "auroc": 0.5666822546527716,
259
+ "prauc": 0.6031660501231252,
260
+ "exact_hits": 1,
261
+ "exact_rate": 0.0008,
262
+ "leak": "clean",
263
+ "baseline_best_mae": 0.9194816993033287,
264
+ "baseline_best_auroc": 0.7303318787238527,
265
+ "noise_floor": 0.6345000139527338
266
+ },
267
+ {
268
+ "board": "KappaOpioid",
269
+ "n_test": 295,
270
+ "mae": 0.845933220338983,
271
+ "auroc": 0.7011572498298162,
272
+ "prauc": 0.6528517032341976,
273
+ "exact_hits": 0,
274
+ "exact_rate": 0.0,
275
+ "leak": "clean",
276
+ "baseline_best_mae": 0.9277110070811073,
277
+ "baseline_best_auroc": 0.6877613536905572,
278
+ "noise_floor": 0.4488744150240029
279
+ },
280
+ {
281
+ "board": "KIT",
282
+ "n_test": 158,
283
+ "mae": 0.9058215189873418,
284
+ "auroc": 0.6388214343532459,
285
+ "prauc": 0.6434387409526401,
286
+ "exact_hits": 0,
287
+ "exact_rate": 0.0,
288
+ "leak": "clean",
289
+ "baseline_best_mae": 0.9250771660303996,
290
+ "baseline_best_auroc": 0.6422211429496519,
291
+ "noise_floor": 0.4273138205482797
292
+ },
293
+ {
294
+ "board": "LD50",
295
+ "n_test": 1180,
296
+ "mae": 0.7578528813559322,
297
+ "auroc": 0.7543736263736264,
298
+ "prauc": 0.6991340938534462,
299
+ "exact_hits": 0,
300
+ "exact_rate": 0.0,
301
+ "leak": "clean",
302
+ "baseline_best_mae": 0.8616664269306642,
303
+ "baseline_best_auroc": 0.6002303902993559,
304
+ "noise_floor": 0.31871901377645034
305
+ },
306
+ {
307
+ "board": "LogP",
308
+ "n_test": 2707,
309
+ "mae": 1.0585599556704839,
310
+ "auroc": 0.8099353302309322,
311
+ "prauc": 0.7604736243896284,
312
+ "exact_hits": 1,
313
+ "exact_rate": 0.0004,
314
+ "leak": "clean",
315
+ "baseline_best_mae": 1.2655529918122463,
316
+ "baseline_best_auroc": 0.732984040112735,
317
+ "noise_floor": 0.43815063632543505
318
+ },
319
+ {
320
+ "board": "Malaria",
321
+ "n_test": 2706,
322
+ "mae": 0.7011786031042129,
323
+ "auroc": 0.7600112309062158,
324
+ "prauc": 0.7420810354511356,
325
+ "exact_hits": 0,
326
+ "exact_rate": 0.0,
327
+ "leak": "clean",
328
+ "baseline_best_mae": 0.74858430825632,
329
+ "baseline_best_auroc": 0.6999872325820087,
330
+ "noise_floor": 0.551777078447704
331
+ },
332
+ {
333
+ "board": "MAOB",
334
+ "n_test": 877,
335
+ "mae": 0.9311986316989738,
336
+ "auroc": 0.6937304303502512,
337
+ "prauc": 0.7188678617614337,
338
+ "exact_hits": 0,
339
+ "exact_rate": 0.0,
340
+ "leak": "clean",
341
+ "baseline_best_mae": 1.0279754487195185,
342
+ "baseline_best_auroc": 0.7043747594428436,
343
+ "noise_floor": 0.6256612894840171
344
+ },
345
+ {
346
+ "board": "MuOpioid",
347
+ "n_test": 337,
348
+ "mae": 0.8388186943620177,
349
+ "auroc": 0.7151064429719441,
350
+ "prauc": 0.7560554182828461,
351
+ "exact_hits": 0,
352
+ "exact_rate": 0.0,
353
+ "leak": "clean",
354
+ "baseline_best_mae": 0.8793462498209669,
355
+ "baseline_best_auroc": 0.6174397293105879,
356
+ "noise_floor": 0.36541362895542684
357
+ },
358
+ {
359
+ "board": "PI3Ka",
360
+ "n_test": 1078,
361
+ "mae": 0.7854666048237476,
362
+ "auroc": 0.7998297537977999,
363
+ "prauc": 0.74386045657801,
364
+ "exact_hits": 0,
365
+ "exact_rate": 0.0,
366
+ "leak": "clean",
367
+ "baseline_best_mae": 0.8713868648365752,
368
+ "baseline_best_auroc": 0.7185662941621558,
369
+ "noise_floor": 0.3741289502909002
370
+ },
371
+ {
372
+ "board": "PPB",
373
+ "n_test": 2551,
374
+ "mae": 15.985997216777736,
375
+ "auroc": 0.7617430590700667,
376
+ "prauc": 0.8152622945725765,
377
+ "exact_hits": 3,
378
+ "exact_rate": 0.0012,
379
+ "leak": "clean",
380
+ "baseline_best_mae": 16.129082712661702,
381
+ "baseline_best_auroc": 0.6921824414881577,
382
+ "noise_floor": 5.486785914462347
383
+ },
384
+ {
385
+ "board": "Solubility",
386
+ "n_test": 4677,
387
+ "mae": 0.6756231344879197,
388
+ "auroc": 0.7487526800266805,
389
+ "prauc": 0.6528326749393665,
390
+ "exact_hits": 0,
391
+ "exact_rate": 0.0,
392
+ "leak": "clean",
393
+ "baseline_best_mae": 0.711774820802794,
394
+ "baseline_best_auroc": 0.6932688073415427,
395
+ "noise_floor": 0.5751407196134256
396
+ },
397
+ {
398
+ "board": "Vdss",
399
+ "n_test": 2870,
400
+ "mae": 0.3753484668989548,
401
+ "auroc": 0.7188729039074883,
402
+ "prauc": 0.8635825361813848,
403
+ "exact_hits": 1,
404
+ "exact_rate": 0.0003,
405
+ "leak": "clean",
406
+ "baseline_best_mae": 0.39841264424138273,
407
+ "baseline_best_auroc": 0.6921987814780755,
408
+ "noise_floor": 0.14284152411835305
409
+ },
410
+ {
411
+ "board": "VEGFR2",
412
+ "n_test": 637,
413
+ "mae": 0.8425291993720565,
414
+ "auroc": 0.7178470551312899,
415
+ "prauc": 0.6133214757502035,
416
+ "exact_hits": 0,
417
+ "exact_rate": 0.0,
418
+ "leak": "clean",
419
+ "baseline_best_mae": 0.8203045097805136,
420
+ "baseline_best_auroc": 0.7233654147923423,
421
+ "noise_floor": 0.7622042646013418
422
+ }
423
+ ]
424
+ }