SeaWolf-AI commited on
Commit
d4901b9
·
verified ·
1 Parent(s): 70d340c

LEADBOARD: 상금 1000달러 · 전체 1명 · 마감 2026-11-30 · 주최측 제외

Browse files
Files changed (3) hide show
  1. app.py +31 -1
  2. i18n.js +14 -0
  3. index.html +22 -0
app.py CHANGED
@@ -39,6 +39,25 @@ HERE = os.path.dirname(os.path.abspath(__file__))
39
  DATA = os.path.join(HERE, "data")
40
  SPEC = "v1.1"
41
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
42
  LEDGER = os.environ.get("LB_LEDGER_REPO", "FINAL-Bench/leadboard-submissions")
43
  LEDGER_API = "https://huggingface.co/api/datasets/%s" % LEDGER
44
  LEDGER_RAW = "https://huggingface.co/datasets/%s/resolve/main" % LEDGER
@@ -315,6 +334,7 @@ def api_leaders():
315
  "leader": None}
316
  if top:
317
  row["leader"] = {"method": top.get("method"), "user": top.get("user"),
 
318
  # score 는 그 부문 주지표 위의 값이다. mae 는 옛 표시부 호환.
319
  "score": top.get("score", top.get("mae")),
320
  "mae": top.get("mae"), "auroc": top.get("auroc"),
@@ -323,8 +343,18 @@ def api_leaders():
323
  out.sort(key=lambda r: (r["leader"] is None, -(r["n_test"] or 0)))
324
  return out
325
  rows = cached("leaders", 60, build)
 
 
 
 
 
 
 
 
326
  return {"spec": SPEC, "n": len(rows), "rows": rows,
327
- "held": sum(1 for r in rows if r["leader"])}
 
 
328
 
329
 
330
  @app.get("/api/board/{name}")
 
39
  DATA = os.path.join(HERE, "data")
40
  SPEC = "v1.1"
41
 
42
+ # 상금. 46부문 중 29부문이 비어 있고 외부 참가자가 1명뿐이라 붙인다. 순위표만 있고
43
+ # 왜 지금 해야 하는지가 없었다.
44
+ #
45
+ # 🔴 주최측 계정은 수상 대상에서 뺀다. 현재 1위 17개 중 16개가 주최측이라 그대로 두면
46
+ # 주최측이 자기 상금을 받는다. ODC 에서 기준물질을 표에 올리되 등수를 주지 않는 것과
47
+ # 같은 처리다 - 눈금 역할은 하되 겨루지는 않는다.
48
+ HOST_ACCOUNTS = {"SeaWolf-AI", "FINAL-Bench", "VIDraft"}
49
+ PRIZE = {
50
+ "amount_usd": 1000,
51
+ "winners": 1,
52
+ "closes": "2026-11-30",
53
+ # 부문마다 지표가 달라 점수를 합산할 수 없다. 1위 부문 수를 센다.
54
+ "rule": "most_first_places",
55
+ }
56
+
57
+
58
+ def is_host(user):
59
+ return (user or "") in HOST_ACCOUNTS
60
+
61
  LEDGER = os.environ.get("LB_LEDGER_REPO", "FINAL-Bench/leadboard-submissions")
62
  LEDGER_API = "https://huggingface.co/api/datasets/%s" % LEDGER
63
  LEDGER_RAW = "https://huggingface.co/datasets/%s/resolve/main" % LEDGER
 
334
  "leader": None}
335
  if top:
336
  row["leader"] = {"method": top.get("method"), "user": top.get("user"),
337
+ "host": is_host(top.get("user")),
338
  # score 는 그 부문 주지표 위의 값이다. mae 는 옛 표시부 호환.
339
  "score": top.get("score", top.get("mae")),
340
  "mae": top.get("mae"), "auroc": top.get("auroc"),
 
343
  out.sort(key=lambda r: (r["leader"] is None, -(r["n_test"] or 0)))
344
  return out
345
  rows = cached("leaders", 60, build)
346
+ # 수상 후보 집계. 주최측은 세지 않는다.
347
+ tally = {}
348
+ for r in rows:
349
+ u = (r.get("leader") or {}).get("user")
350
+ if u and not is_host(u):
351
+ tally[u] = tally.get(u, 0) + 1
352
+ standing = sorted(({"user": u, "firsts": n} for u, n in tally.items()),
353
+ key=lambda x: -x["firsts"])
354
  return {"spec": SPEC, "n": len(rows), "rows": rows,
355
+ "held": sum(1 for r in rows if r["leader"]),
356
+ "prize": PRIZE, "standing": standing,
357
+ "host_accounts": sorted(HOST_ACCOUNTS)}
358
 
359
 
360
  @app.get("/api/board/{name}")
i18n.js CHANGED
@@ -28,6 +28,13 @@ ko: {
28
  leadersEmpty: n => `${n}개 부문 모두 참가 제출을 기다리고 있습니다.`,
29
  leadersSome: (a, b) => `${b}개 부문 중 ${a}개에 선두가 있습니다.`,
30
  secBrowse: "분야", secBrowseLead: "분야를 선택하면 소속 부문의 순위표와 제출 창구로 이동합니다.",
 
 
 
 
 
 
 
31
  starterTag: "입문",
32
  starterLead: "처음이시면 <b>입문</b> 표시가 붙은 부문부터 보세요. 시험셋이 150~200개로 작고, 학습 데이터를 ChEMBL 조회 한 번으로 받을 수 있습니다.",
33
  secEvidence: "측정 한계 지형",
@@ -225,6 +232,13 @@ en: {
225
  leadersEmpty: n => `All ${n} boards are awaiting their first entry.`,
226
  leadersSome: (a, b) => `${a} of ${b} boards have a leader.`,
227
  secBrowse: "Disciplines",
 
 
 
 
 
 
 
228
  starterTag: "start here",
229
  starterLead: "New here? Begin with the boards marked <b>start here</b>. Their test sets are 150-200 compounds and the training data comes from a single ChEMBL query.",
230
  secBrowseLead: "Select a discipline to reach its boards, leaderboards and submission desk.",
 
28
  leadersEmpty: n => `${n}개 부문 모두 참가 제출을 기다리고 있습니다.`,
29
  leadersSome: (a, b) => `${b}개 부문 중 ${a}개에 선두가 있습니다.`,
30
  secBrowse: "분야", secBrowseLead: "분야를 선택하면 소속 부문의 순위표와 제출 창구로 이동합니다.",
31
+ prizeH: "상금",
32
+ prizeLead: (amt,close)=>`마감일에 <b>순위표 1위 부문을 가장 많이 보유한 한 분</b>에게 미화 ${amt}달러를 드립니다. 마감 ${close}.`,
33
+ prizeRule: "부문마다 지표가 달라 점수를 합산할 수 없으므로, <b>1위 부문의 개수</b>로 셉니다. 동수이면 먼저 도달한 분이 우선합니다.",
34
+ prizeHost: "주최측 계정(SeaWolf-AI 등)은 수상 대상이 아닙니다. 눈금 역할로 표에 남되 겨루지 않습니다.",
35
+ prizeNone: "아직 수상 후보가 없습니다. 부문 하나에서 1위를 하면 이름이 여기 올라갑니다.",
36
+ prizeStanding: "현재 후보",
37
+ prizeFirsts: (n)=>`1위 ${n}개 부문`,
38
  starterTag: "입문",
39
  starterLead: "처음이시면 <b>입문</b> 표시가 붙은 부문부터 보세요. 시험셋이 150~200개로 작고, 학습 데이터를 ChEMBL 조회 한 번으로 받을 수 있습니다.",
40
  secEvidence: "측정 한계 지형",
 
232
  leadersEmpty: n => `All ${n} boards are awaiting their first entry.`,
233
  leadersSome: (a, b) => `${a} of ${b} boards have a leader.`,
234
  secBrowse: "Disciplines",
235
+ prizeH: "Prize",
236
+ prizeLead: (amt,close)=>`At the closing date, <b>the entrant holding the most first places</b> receives USD ${amt}. Closes ${close}.`,
237
+ prizeRule: "Boards use different metrics, so scores cannot be summed. What counts is <b>the number of boards you lead</b>. Ties go to whoever got there first.",
238
+ prizeHost: "Host accounts (SeaWolf-AI and others) are not eligible. They stay on the tables as a scale to read against, but they do not compete.",
239
+ prizeNone: "No contenders yet. Take first place on any board and your name appears here.",
240
+ prizeStanding: "Current contenders",
241
+ prizeFirsts: (n)=>`${n} board${n===1?"":"s"} led`,
242
  starterTag: "start here",
243
  starterLead: "New here? Begin with the boards marked <b>start here</b>. Their test sets are 150-200 compounds and the training data comes from a single ChEMBL query.",
244
  secBrowseLead: "Select a discipline to reach its boards, leaderboards and submission desk.",
index.html CHANGED
@@ -50,6 +50,11 @@
50
  .sp{flex:1}
51
  /* 진입 부문 배지. 46부문 중 어디서 시작할지 몰라 아무 데도 시작하지 못하는
52
  것을 막으려는 표시다. */
 
 
 
 
 
53
  .chip.st1{background:#e8f5e9;color:#2e7d32;border-color:#c8e6c9}
54
  .chip{display:inline-flex;align-items:center;font-size:11px;font-family:var(--m);
55
  padding:3px 9px;border-radius:99px;background:var(--soft);color:var(--acc);font-weight:700}
@@ -381,6 +386,8 @@ function hub(){
381
  <div class="sec"><h2>${t.secLeaders}</h2><p class="lead2">${t.secLeadersLead}</p>
382
  <div id="leaders"><div class="skel" style="height:200px"></div></div></div>
383
 
 
 
384
  <div class="sec"><h2>${t.secBrowse}</h2><p class="lead2">${t.secBrowseLead}</p>
385
  <div class="grid">${CATS.categories.map(cardHTML).join("")}</div></div>
386
 
@@ -420,9 +427,24 @@ function hub(){
420
  }
421
 
422
  /* 부문별 1위 표. 비동기로 채운다 - 원장을 부문 수만큼 읽어야 해서 첫 그림을 막으면 안 된다. */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
423
  async function paintLeaders(){
424
  const el=$("#leaders"); if(!el)return;
425
  let d; try{ d=await j("/api/leaders"); }catch(e){ el.innerHTML=""; return; }
 
426
  const rows=d.rows.map(r=>{
427
  const ld=r.leader; // 전역 L 은 언어다. 가리지 않는다
428
  // 점수는 부문마다 주지표가 다르다. 회귀 부문은 MAE, 분류 전용 부문은 AUROC.
 
50
  .sp{flex:1}
51
  /* 진입 부문 배지. 46부문 중 어디서 시작할지 몰라 아무 데도 시작하지 못하는
52
  것을 막으려는 표시다. */
53
+ .prizebox{background:linear-gradient(135deg,#fffdf7 0%,#fdf4e3 100%);border:1px solid #f0dfba;border-radius:12px;padding:16px 18px}
54
+ .prizebox .amt{font-size:28px;font-weight:900;color:#a97c1a;letter-spacing:-1px}
55
+ .prizebox p{font-size:13.5px;color:#6b5a36;margin:6px 0;line-height:1.7}
56
+ .prizebox .fine{font-size:11.5px;color:#8a7649;border-top:1px solid #f0dfba;padding-top:9px;margin-top:8px}
57
+ .prizebox .cand{font-size:13px;color:#4a3f24;margin-top:8px}
58
  .chip.st1{background:#e8f5e9;color:#2e7d32;border-color:#c8e6c9}
59
  .chip{display:inline-flex;align-items:center;font-size:11px;font-family:var(--m);
60
  padding:3px 9px;border-radius:99px;background:var(--soft);color:var(--acc);font-weight:700}
 
386
  <div class="sec"><h2>${t.secLeaders}</h2><p class="lead2">${t.secLeadersLead}</p>
387
  <div id="leaders"><div class="skel" style="height:200px"></div></div></div>
388
 
389
+ <div class="sec prizebox" id="prizebox"></div>
390
+
391
  <div class="sec"><h2>${t.secBrowse}</h2><p class="lead2">${t.secBrowseLead}</p>
392
  <div class="grid">${CATS.categories.map(cardHTML).join("")}</div></div>
393
 
 
427
  }
428
 
429
  /* 부문별 1위 표. 비동기로 채운다 - 원장을 부문 수만큼 읽어야 해서 첫 그림을 막으면 안 된다. */
430
+ /* 상금 안내. 순위표만 있고 왜 지금 해야 하는지가 없어 29부문이 비어 있었다. */
431
+ function renderPrize(d){
432
+ const el=$("#prizebox"); if(!el||!d||!d.prize) return;
433
+ const p=d.prize, s=d.standing||[];
434
+ el.innerHTML=`<h2>${t.prizeH}</h2>
435
+ <div class="amt">$${p.amount_usd.toLocaleString()} <small>USD</small></div>
436
+ <p>${t.prizeLead(p.amount_usd.toLocaleString(), p.closes)}</p>
437
+ <p>${t.prizeRule}</p>
438
+ <div class="cand"><b>${t.prizeStanding}</b> — ${
439
+ s.length? s.slice(0,5).map(x=>`${esc(x.user)} <span class="dim">(${t.prizeFirsts(x.firsts)})</span>`).join(" · ")
440
+ : t.prizeNone}</div>
441
+ <div class="fine">${t.prizeHost}</div>`;
442
+ }
443
+
444
  async function paintLeaders(){
445
  const el=$("#leaders"); if(!el)return;
446
  let d; try{ d=await j("/api/leaders"); }catch(e){ el.innerHTML=""; return; }
447
+ renderPrize(d);
448
  const rows=d.rows.map(r=>{
449
  const ld=r.leader; // 전역 L 은 언어다. 가리지 않는다
450
  // 점수는 부문마다 주지표가 다르다. 회귀 부문은 MAE, 분류 전용 부문은 AUROC.