Research notebook

The engineering log

Training cockpit, promote-gate scorecard, explorer and probe debuggers, architecture exhibits, the full lab pipeline. Written for engineers and research readers — it also feeds the eye.jcamd.com research entries. For the fan-readable version, see Methods.

The lab, graded

The model, graded — the lab scorecard

Split out of Methods 2026-10-23: the scorecard, the architecture and the live exhibits live here now, under the same recompute promise.

Promote-gate baseline, re-anchored 2026-07-24. The old baseline was measured on the pre-protocol loop that trained on held-out positives — its recall@10 of 1.0 was memorization, so the gate demanded ≥0.98 and no honest model could ever pass it. The current baseline is leak-free and averaged across seeds; it is computed by the gate at promotion time (pipeline/composite_score.py), not republished here as decimals.

leak-freeCQS baseline protocol
multi-seedmean baseline
player-splitno train/test leakage
2× SEclearance over seed noise

Promoted 2026-07-25: mtnn_v5_concat_b2_h160_t32_d64_mlp128_fus256, replacing the 2026-07-14 build. On the identical held-out protocol (assets/eval_scoreboard.json) it nearly quadruples the committed transparent baseline on never-trained 2024+ pairs — top-5 0.196 → 0.757, top-1 0.079 → 0.438 (baseline: the 14-d era-z profile in vectors.json). The previous build predated the position-label, career-feature and durability-leak fixes.

Served-model scorecard — MTNN v5, built 2026-07-25 (assets/mtnn_meta.json): test recall@10 0.846 (held-out 2024+ targets) · cross-era purity@20 0.783 · archetype top-1 0.970 (training snapshot). Held-out retrieval detail:

…held-out top-5 retrieval
…held-out top-1
…14-d baseline top-5
…eligible pairs

Loading assets/eval_scoreboard.json…

Training Cockpit • MTNN v5 — served · v6 — research

Training cockpit — what ships now and what trains next

Current deployed — mtnn_v5_concat_b2_h160_t32_d64_mlp128_fus256

Loading mtnn_arch.json…

CQS weights from pipeline/composite_score.py: recall 0.18, purity 0.16, margin_14d 0.08, archetype 0.08, position 0.05, skills_r2 0.14, skill_nn 0.05, next_r2 0.12, next_mae 0.06, aux_r2 0.08. Gate re-anchored to a leak-free baseline (multi-seed mean, 130-feature matrix). Thresholds are now 2× the standard error of the seed mean rather than a flat 0.02 — seed-to-seed spread on test recall is wide, so the old slack was adjudicating sampling noise. A candidate must also hold same-player continuity spread under its bar, which is what catches a model that memorizes the training window instead of generalizing.

Hill-climb 01→05 + loss weights

01Gatherstats.nba 12,966
→
02Vectorsper-season z ±4 + mask
→
03Towers17×160→32 ×2 blocks
→
04Fusion556→256→64 L2
→
05DeployONNX + WASM + Procrustes

The served champion: 17 towers × 2 residual blocks, 160 hidden → 32 out (LN + GELU + skip) = 544, + 12-d season embedding = 556 concat → 256 fusion → 64-d L2 unit sphere. One embedding feeds every head — 8 archetype + 5 position + 14 next-profile + 18 skill towers (12 core skills + 6 wide tracking skills). It holds 12,966 player-seasons, and Procrustes-chained drift maps any season into the 1996-97 root frame.

Research candidate — not served: an MTNN v6 transformer-fusion build (d-model 128, 64-d out) is specified in assets/eval_scoreboard_v6.json — its own status there is candidate, not trained to completion, with projected rather than measured metrics. Production serves ONE model only — MTNN v5 above. Nothing becomes champion without a leak-free held-out win over v5.

Exact v6 candidate training command (research — not the served model)

python pipeline/train_mtnn.py --epochs 150 --dim 64 --tower-width 40 --tower-hidden 192 --tower-blocks 3 --mlp-heads --d-head-hidden 128 --fusion transformer --d-model 128 --n-fusion-layers 4 --n-attn-heads 4 --fusion-hidden 512 --lr 0.001 --lr-schedule onecycle --warmup-pct 0.1 --anneal-strategy linear --weight-decay 0.0002 --nce-loss hybrid --nce-player-weight 0.65 --nce-arch-weight 0.35 --hard-neg-boost 0.4 --drop-p 0.15 --checkpoint-metric cqs --val-every 5 --era-align procrustes --robust-scaling --phase auto

Preprocessing: Procrustes chains drift.json back to 1996-97 root RᵀR=I, robust median/IQR clip[-3,3]. Loss: NCE hybrid player 0.65 arch 0.35 + archetype/position/profile/next/skills/salary/team_fit/roster_lift/form_recon/career_slope/competition/pedigree/playoff/honors. Split: player leakfree. Optim: AdamW no decay bias/LN. Scheduler: OneCycle warmup 10% linear.

Forecast — same family, one season forward Where you're headed

A deterministic TimesFM-lite forecaster (numpy, seed 7) projects player embeddings one season forward from 3-season windows — 7,096 forecasts served from assets/timesfm_forecasts.json (built 2026-09-02), The metrics in that file are train-split, so this stays research-only: it does not drive the map or any prediction product. Stone dashed = uncertainty, terracotta dashed = headed direction. ONE champion served — MTNN v5.

8-d forecast head7,096 forecastsresearch-onlyPast → Modern → Headed
Loading forecast…
Research — in progress

The Frontier Program

Four bets, each with a held-out eval gate. Nothing ships without beating the baseline that matters.

01 · Mixed-curvature embeddings

Player similarity isn't one geometry. Archetype hierarchies are tree-like, era drift is flat, matchup cycles are spherical — so we're learning a product space (hyperbolic × spherical × Euclidean) with curvatures the data chooses, not ones we guess. Challenger to our v5 embeddings, gated on a δ-hyperbolicity diagnostic and twin-retrieval evals.

02 · DARKO-style game forecasting

Per-player Bayesian state estimation — exponential decay plus Kalman filtering over every box score — with who-guards-whom matchup tensors and a minute-projection engine conditioned on blowout probability. The literature's verdict is blunt: minutes move the needle more than model cleverness. Evaluated against the betting line, never a naive baseline.

03 · Live in-game updating

Bayesian second-half projections from live play-by-play: current stat plus remaining minutes at current usage, pace, and foul state, shrunk toward the pre-game prior — because a hot first half predicts a cooler second half, not a continuation. Published baselines for this are few and far between — we're building a public one.

04 · Hyperbolic representation learning

The GGBall paper's hyperbolic VQ-VAE, repurposed as an encoder for the archetype taxonomy — the one job hyperbolic geometry was born for. Pursued only if the δ diagnostic says the data wants curvature. (We checked the hype first: the paper's "18%" claim appears in neither its abstract nor its full text.)

Full provenance for everything in the Lab: the sections at the top of this page. The Props Lab paper-trading experiment has been retired — it was a model lab in a game costume, and nothing in it belonged in the game.

Architecture — 4 animations • code-generated

How MTNN actually works

MTNNFlow — glass box
17 towers, 130 feats cat([x·m,m]) → 17× 160→32 LN+GELU ×2 blocks → 544 + season emb 12 → 556→256 fusion → 64 L2 → heads 8/5/14/18. Every box is a real dimension. Renders the served MTNN v5 architecture. Injury is a durability read-out family, not an input tower.
ChimeraEquation — how Chimera scores
Donor A + Donor B → fuse in 64-d → nearest real season among 12,966 by cosine. The argmin behind daily puzzle. MTNN v5 · 64-d
InputFamilies — 130 feats → 17 families → cat([x·m,m])
volume·play·reb·def·eff·shotmix·bio·tracking*·form*·market·roster·career·comp·team·pedig·playoffs·honors =130. Missing tracking pre-2013 masked to zero.
EmbeddingL2 — 64-d → L2 → unit sphere
v̂ = v/||v||₂, ||v̂||=1, cos = v̂·ŵ. 12,966 points on sphere powers Chimera + Era Twin.

Data flow — truthful boxes measured

Input mask m∈{0,1} • cat([x·m,m]) → 17 towers b2 h160 → t32 ×2 residual LN GELU + skip → 544 + season 12 =556 concat → 256 fusion → L2 embed 64-d → MLP heads 8/5/14/18. Tap any node. MTNN v5 champion, 12,966×64.

Tap a node to see what fed it.

Loading tower activations, family share per head…

Tap an input, tower, or output to see exact numbers.

Guess & grade — heads decode the 64-d MTNN v5 embedding

Same MLP heads as rightmost column. Tap a row to lock trace back through network.

Archetype — 8

Position — 5

Skill grades — 18×(64→16→1)

Next-season forecast — per 100

Explorer • Glass box debugger

Probe any player-season

Loading index…
No compare

Loading architecture… MTNN v5: 17 towers 160→32, LN GELU ×2 blocks, 12-d season emb, 544+12=556 → 256 fusion → 64 L2. Era-honest sigma per-season, masked, Procrustes-chained drift root 1996-97 Q^T Q=I.

Loading story…

Compare off — toggle to diff two seasons.

Embedding map — 64-d MTNN v5 rendered in 3D

Slow auto-rotate • drag to orbit • scroll to zoom • orange=selected — 12,966 points L2-normalized.

    Loading nearby players…

    Lab pipeline 01→05

    From box score to fingerprint

    01 Gather → 02 Vectors

    Pull every per-100 split from stats.nba.com 1996-2026. 12,966 player-seasons after the schedule-aware eligibility filter (games + minutes bars, 450-minute floor). Per-season z-score so 1999 and 2026 are both 0 = average of their era. Mask m creates cat([x·m,m]) so model knows never-measured vs zero.

    • volume, playmaking, rebounding, defense, efficiency, shotmix
    • bio age/height/weight/draft, tracking 2013+ masked, form 2015+ masked
    • market salary, roster complement, career lag cosine, competition SOS, team, pedigree, playoffs, honors

    03 Train → 04 Export → 05 Deploy

    Residual towers 17×160→32 ×2 LN GELU + skip =544, + season emb 12 =556 concat, fusion 256 → 64 L2. 17 families, cat([x·m,m]) masked, Procrustes chained RᵀR=I root 1996-97 so Era Twin compares directly. Heads MLP decode 8/5/14/18. Forecasts research-only. ONNX 548 KB runs in the browser (WASM).

    Shipped spec reproducible

    Arch spec — mtnn_arch.json

    Loading mtnn_arch.json…
    Research log

    Skills lens — 0 to 99

    Twelve skills, each a fixed linear composite of era-z per-100 stats, expressed as a percentile within the season, so a 90 in 1997 equals a 90 in 2026. Badges start at 90; gold at 97. These are the 12 core skills — the ones with badges. The model trains 18 skill towers: these 12 plus 6 wide tracking-based skills (post, transition, motor, shooting gravity, rim gravity, disruption gravity), masked to seasons with tracking data.

    recall@10
    Can the model find the same player the following season?
    purity@20
    Do a season’s neighbours share its archetype?
    Research log · Experimental

    Forecast — where a player is headed

    Three-season context → next-season embedding (first 8 of 64 dimensions). Source: the served 64-d MTNN v5 embedding, 12,966 × 64. A deterministic numpy forecaster (patch length 3, cross-variate least squares, seed 7), 7,096 windows, chronological split — train ≤2021, validation 2022–23, test ≥2024; the metrics stored in the file are train-split, research-only. No quantile calibration yet. Not TimesFM-3 (non-commercial) or a validated TimesFM-2.5.

    One contract everywhere: assets/timesfm_forecasts.json, 7,096 forecasts, with an honest failure message if the file is missing.

    Future work: chronological, player-aware splits with no leakage; saved seeds and weights; naive-last and drift baselines; MAE / RMSE plus angular error; quantile coverage.

    Research log

    Accuracy harness — blocks a deploy on failure

    V1vectors.json dimensions, ranges, no duplicates
    V2Cluster labels recomputed by nearest centroid; all 12,966 match
    V3deadline.json deltas recomputed from raw logs, 0.01 tolerance
    V4Chimera determinism across 30 dates; cosine < 0.3 between donors

    MTNN extras: leak-free recall@10 via leakfree.py, purity@20, next-profile MAE. ONNX 548 KB.

    Colophon

    Page transitions, the Pixel Replay wipe and the site’s music (written in ABC notation and synthesized in your browser, no audio files) follow huashu-motion; the music code is ported in part from it, Copyright (c) 2026 Huashu, MIT License.