Skip to content

Commit 71942fc

Browse files
committed
Research update: results on the AxoBench private test set (AxoSim small and medium, TCN, Branch-ELM, DBNN; free-GPU cost); own cover; linked from the AxoBench page and the AxoSim and AxoBench card
1 parent 9a727dc commit 71942fc

22 files changed

Lines changed: 11604 additions & 0 deletions

‎public/work/axobench-private-test/fig1-mean-f1.svg‎

Lines changed: 1610 additions & 0 deletions
Loading

‎public/work/axobench-private-test/fig2-voltage-skill.svg‎

Lines changed: 2644 additions & 0 deletions
Loading

‎public/work/axobench-private-test/fig3-voltage-mv.svg‎

Lines changed: 2923 additions & 0 deletions
Loading

‎public/work/axobench-private-test/fig4-cost.svg‎

Lines changed: 3698 additions & 0 deletions
Loading
104 KB
Loading

‎public/work/covers/axobench-private-test.svg‎

Lines changed: 296 additions & 0 deletions
Loading

‎scripts/covers/build.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"prepretraining-not-ready-yet": dict(layout="card", figure=F.prepretraining_card),
4848
"irregular-parameter-sharing": dict(layout="card", figure=F.irregular_parameter_sharing_card),
4949
"axosim-connectome-demo": dict(layout="card", figure=F.axosim_connectome_demo_card),
50+
"axobench-private-test": dict(layout="card", figure=F.axobench_private_test_card),
5051
}
5152

5253

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"heldout":["specimen_354190013","specimen_480353286","specimen_488683425"],"mean_f1":{"DBNN":{"neuronio_hay_cell1":0.2344,"specimen_314822529":0.1112,"specimen_314831019":0.2542,"specimen_468120757":0.1727,"specimen_471129934":0.2077,"specimen_473601979":0.2137,"specimen_476048909":0.1067,"specimen_478586295":0.2042,"specimen_480169178":0.2663,"specimen_480351780":0.1522,"specimen_484559000":0.2547,"specimen_485574832":0.283,"specimen_354190013":0.1188,"specimen_480353286":0.2437,"specimen_488683425":0.2223},"TCN, cell identity":{"neuronio_hay_cell1":0.2349,"specimen_314822529":0.3714,"specimen_314831019":0.2959,"specimen_468120757":0.231,"specimen_471129934":0.4274,"specimen_473601979":0.3071,"specimen_476048909":0.1793,"specimen_478586295":0.2602,"specimen_480169178":0.4172,"specimen_480351780":0.2352,"specimen_484559000":0.4384,"specimen_485574832":0.3922},"Branch-ELM, per cell":{"neuronio_hay_cell1":0.2276,"specimen_314822529":0.4115,"specimen_314831019":0.2541,"specimen_468120757":0.2123,"specimen_471129934":0.3885,"specimen_473601979":0.2858,"specimen_476048909":0.1742,"specimen_478586295":0.2409,"specimen_480169178":0.3964,"specimen_480351780":0.3033,"specimen_484559000":0.4489,"specimen_485574832":0.3973,"specimen_354190013":0.1169,"specimen_480353286":0.2099,"specimen_488683425":0.2075},"AxoSim small":{"neuronio_hay_cell1":0.4128,"specimen_314822529":0.5337,"specimen_314831019":0.4558,"specimen_468120757":0.2947,"specimen_471129934":0.5278,"specimen_473601979":0.442,"specimen_476048909":0.2542,"specimen_478586295":0.6622,"specimen_480169178":0.5529,"specimen_480351780":0.4332,"specimen_484559000":0.5526,"specimen_485574832":0.5906,"specimen_354190013":0.1171,"specimen_480353286":0.2801,"specimen_488683425":0.3382},"AxoSim medium":{"neuronio_hay_cell1":0.5282,"specimen_314822529":0.5974,"specimen_314831019":0.6678,"specimen_468120757":0.3785,"specimen_471129934":0.6089,"specimen_473601979":0.5929,"specimen_476048909":0.37,"specimen_478586295":0.8245,"specimen_480169178":0.6429,"specimen_480351780":0.5518,"specimen_484559000":0.6714,"specimen_485574832":0.6642,"specimen_354190013":0.1421,"specimen_480353286":0.25,"specimen_488683425":0.3271}}}

‎scripts/covers/extract_data.py‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,18 @@ def axosim_connectome_demo() -> None:
319319
"cloud": _r(coords[::10], 3), "paths": paths})
320320

321321

322+
def axobench_private_test() -> None:
323+
"""Mean F1 per neuron of each model on the AxoBench private test set
324+
(axobench-internal/private-test-results/artifacts/results/aggregate.json, "per_cell"; the
325+
per-cell Branch-ELM and TCN values are averages over their seeds, and over all 12 models on held-out cells)."""
326+
d = json.loads((WS / "axobench-internal/private-test-results/artifacts/results/aggregate.json").read_text())
327+
_save("axobench-private-test", {"heldout": ["specimen_354190013", "specimen_480353286", "specimen_488683425"],
328+
"mean_f1": {group: {cell: round(v[0], 4) for cell, v in cells.items()}
329+
for group, cells in d["per_cell"].items()}})
330+
331+
322332
JOBS = {
333+
"axobench-private-test": axobench_private_test,
323334
"prepretraining-not-ready-yet": prepretraining,
324335
"irregular-parameter-sharing": irregular_parameter_sharing,
325336
"axosim-fly-geometry": axosim_fly_geometry,

‎scripts/covers/figures.py‎

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -432,6 +432,34 @@ def axosim_fly_geometry_card(fig):
432432
FLY_SPACE = "umap2d"
433433

434434

435+
def axobench_private_test_card(fig):
436+
"""Mean F1 per neuron on the AxoBench private test set: one line per model
437+
through the twelve training neurons, sorted by AxoSim medium's score, then
438+
the three held-out neurons. AxoSim medium (violet) and small (light violet)
439+
above the TCN, the per-cell Branch-ELM and the DBNN (greys); the TCN has no
440+
held-out values."""
441+
d = load("axobench-private-test")
442+
f1 = d["mean_f1"]
443+
medium = f1["AxoSim medium"]
444+
train = sorted((c for c in medium if c not in d["heldout"]), key=medium.get)
445+
order = train + d["heldout"]
446+
x = {c: i + (0.8 if c in d["heldout"] else 0.0) for i, c in enumerate(order)}
447+
ax = _card_axes(fig)
448+
style = {"DBNN": (GREY_LIGHT, 2.2), "TCN, cell identity": (GREY, 2.2), "Branch-ELM, per cell": (_mix(GREY, INK, 0.45), 2.2),
449+
"AxoSim small": (BRAND_LIGHT, 3.0), "AxoSim medium": (BRAND, 3.4)}
450+
for group, (col, lw) in style.items():
451+
values = f1.get(group, {})
452+
for part in (train, d["heldout"]):
453+
cells = [c for c in part if c in values]
454+
if not cells:
455+
continue
456+
xs, ys = [x[c] for c in cells], [values[c] for c in cells]
457+
ax.plot(xs, ys, color=col, lw=lw, alpha=0.95, solid_joinstyle="round", solid_capstyle="round")
458+
ax.scatter(xs, ys, s=lw * 14, color=col, lw=0, zorder=3)
459+
ax.set_xlim(-0.8, len(order) + 0.6)
460+
ax.set_ylim(0.0, 0.9)
461+
462+
435463
def axosim_connectome_demo_card(fig):
436464
"""The connectome demo's state space as the demo draws it: the reference
437465
cloud of population states as faint points, and the population trajectory

0 commit comments

Comments
 (0)