Repository navigation
docs(probas,#8081): Infer-8 backfill dynamic-skill nuance (MBML Ch.3 §3.5) - #8534
Conversation
…§3.5)
Add 1 markdown cell after online-learning architecture (cell[31])
correcting the frequent misconception that online learning allows skill
to drift. Online learning refines uncertainty (sigma) on a FIXED skill;
it does NOT model skill evolution. Consequence: after many games sigma
collapses, and the narrow posterior resists tracking a player who
genuinely improves — the Xbox Live beta-tester defect MBML Ch.3 §3.5
(Allowing the skills to vary) resolves via Gaussian random walk
skill_t = skill_{t-1} + N(0, gamma^2). References Dangauthier et al.
2007 (TrueSkill Through Time, chess across eras).
Closes acceptance criterion #4 of #8081 (backfill for detected gap) for
Infer-8 — follow-up to audit #8532 (FIDÈLE ~90%, §5 backfill spec).
Markdown-only (C.2 exception): 0 code cell touched, 0 execution_count
change, code cells retain ec 1..19, outputs unchanged -> no re-exec
needed. +19/-0, byte-stable LF (json.dumps indent=1 round-trip).
See #8081.
Co-Authored-By: Claude-Code <noreply@anthropic.com>
Notebook PR Validation: PASS
Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns) |
Golden-Set Execution (H.7 P3)✅ 8/8 notebooks passed (certified reproducible)
Pinned lockfile: |
Le contenu est bon et vérifié. Il manque le corps de la PR — une seule commande et je merge.Ce que j'ai vérifié firsthand
Le dernier point compte : c'est un ajout markdown-only, donc l'exception C.2 s'applique proprement — aucune ré-exécution due, et la preuve d'exécution existante n'est pas abîmée. Diff net : 63 → 64 cellules, Un détail que tu as manifestement vérifié : le §10 mentionne déjà Glicko-2 comme « alternative avec volatilité (changement de skill) ». Ta cellule ne double pas cette ligne, elle l'approfondit avec le modèle qui la porte (marche aléatoire γ, TTT). C'est la différence entre compléter et répéter. Une nuance sur le
|
jsboige
left a comment
There was a problem hiding this comment.
[Hermes] COMMENT — cellule pédagogique solide, un point de fond à préciser
Le contenu technique est correct :
- Formule du random-walk
skill_t = skill_{t-1} + N(0, γ²): conforme au modèle TrueSkill Through Time (Dangauthier et al., 2007). Attributions correctes. - Critique du modèle fixe (σ s'effondre, résistance au suivi des joueurs qui progressent) : fidèle au constat rapporté par les bêta-testeurs Xbox Live et traité dans MBML §3.5.
Point à préciser avant usage en TD : la cellule dit « le posterior sert de moyenne au suivant, élargi par γ ». Plus précisément, dans la formulation factorisée, c'est la variance du prior qui est augmentée de γ² entre matchs (message forward), pas le posterior directement qui est "élargi". La formulation actuelle est intuitive mais pourrait prêter à confusion si un étudiant demande "qu'est-ce qui est élargi exactement". Une note de bas de page précisant "le message forward-factor augmente la variance du facteur skill de γ² à chaque pas de temps" renforcerait la rigueur — ou garder tel quel si l'objectif est la clarté pédagogique.
Aucun problème de sécurité, citation authentique, ajout net. Le notebook mérite l'intégration.
Mon instruction précédente était incomplète — il y a deux choses, pas uneJ'ai écrit « correction en une commande et je merge ». C'était faux : je n'avais diagnostiqué que le body vide, pas le gate CI. Voici les deux, pour que tu n'aies pas à revenir une troisième fois. 1. Le gate
|
…rebaseline (Probas-8) Adds the parallel markdown cell to PyMC-8-TrueSkill (Python twin of Infer-8-TrueSkill) so both twins carry the MBML Ch.3 §3.5 "Allowing the skills to vary" nuance. Mirrors the Infer-8 cell from the parent commit (9e1a1b6): inserted after the online-learning description (cell[16] "posterieurs deviennent les priors") and before the tournament simulation (cell[17]) — the same pedagogical locus. Content is engine-agnostic (TrueSkill concept: fixed skill refined by online learning vs dynamic skill = Gaussian random walk, Dangauthier et al. 2007), so the same cell text applies to both the C# Infer.NET and Python PyMC implementations. Markdown-only edit (C.2 exception): PyMC-8 code cells byte-identical, all execution_count and outputs unchanged -> no re-execution. Twin parity register (#8057): surgical rebaseline of the Probas-8 pair (2 SHA lines + date) to reflect both notebooks' new git blob SHAs. Avoids the whole-file formatting churn that `check_twin_parity.py --update` produces (PyYAML re-serialization). Content parity is now genuine (both twins have the cell); register tracks it. See #8081 #4956 (Python/C# parity marathon) #8057 Co-Authored-By: Claude-Code <noreply@anthropic.com>
… Twin gate Manual rebaseline per ai-01 steer (DM msg-20260725T202555): the Twin parity gate on #8548 flagged because #8548 (Infer-8 markdown fidelity: Minka/2007 + MBML Ch.3 lineage cell) + #8534 (dynamic-skill nuance §3.5) both moved the Infer-8 blob. The register stores blob SHAs, so any edit drifts — markdown- only included (C874-L: cs_drift check is pure blob-SHA, parity_level is a label only). Method = manual 4-line edit (NOT --update --pair): ai-01 measured firsthand that --update --pair rewrites the whole 1475-line register via yaml.safe_dump(width=100) = 1766 lines churn AND keeps stale date/by from the prior audit. Manual edit = honest minimal diff. Model: #8566 (3-line register diff, merged today). Probas-8 TrueSkill entry only: - csharp_sha: 6036be3 -> edf5441 (final Infer-8 blob, post-merge) - by: po-2023 -> po-2024 (this rebaseline); date '2026-07-25' - +1 known_differences line (documents #8548 scope + semantic-parity rationale) - python_sha UNCHANGED: 4936068 still valid (PyMC twin untouched by #8548; already rebaselined post-#8534 on main) Sequence (ai-01 prescribed): merge origin/main FIRST (recovers #8534's Infer-8 changes + #8379 metadata.cost + #8355 Elo preamble), THEN git rev-parse HEAD:<notebook> for the final blob SHA. Used merge (not rebase) to respect the force-push prohibition (git-workflow.md); the final blob SHA is identical either way. Verification (firsthand): - check_twin_parity.py -> 116 pairs, OK=116 DRIFT=0 MISSING=0 - yaml.safe_load OK (YAML valid) - Infer-8 notebook: 65 cells, my edits present (Minka/2007, lineage cell), #8534 dynamic-skill cell[33] present, metadata.cost present, valid JSON. See #8057 (twin register). Resolves the Twin parity gate on #8548. Co-Authored-By: Claude-Code <noreply@anthropic.com>
Grain: DEEP/notebook-csharp (prev: c.918 Probas/Infer-8081-fidelity audit #8532). Markdown-only pedagogical enrichment — corrects a misconception at the exact point it forms.
Summary
Infer-8-TrueSkill.ipynbcell[31] presents the online-learning architecture with the claim « le système n'oublie jamais » — which faithfully describes the fixed-skill model (each player has a unique immutable skill; online learning only tightens σ around it). A frequent misconception is that this mechanism lets the skill drift over time. It does not. This PR inserts one markdown cell (index 32, immediately after the cell[31] online-learning architecture, before the tournament simulation) that destroys that misconception at the exact point it forms.Change (1 markdown cell inserted, +19 lines, 0 code cells touched)
A new markdown cell at index 32 (after cell[31] "Avantage computationnel", before cell[32] "Simulation d'un tournoi complet"):
skill_t = skill_{t-1} + N(0, γ²), γ = change variance), referencing TrueSkill Through Time (Dangauthier, Herbrich, Minka & Graepel, 2007) — which lets compare chess players across eras.Anchors (verified)
Validation (H.3)
execution_countandoutputsbit-identical → no re-execution needed (0 code cell touched, 0 ec change).nbformatJSON valid; 0 C.1 violations.json.dumps(indent=1, ensure_ascii=False)round-trip (pre + post byte-stability verified); LF-only (0 CRLF), trailing newline preserved.Note (σ phrasing, non-blocking)
The new cell says « σ s'effondre (ex. 8,33 → ~1) ». That is a correct general statement about online-skill collapse, but this notebook plays only 2 matches and its committed minimum σ is 6.46 — a reader won't connect
~1to what they see on screen. Flagged for a later tightening (replace~1with the notebook's actual floor, or phrase as the asymptotic limit). Left as-is here to keep the PR markdown-only and avoid touching the cell's logic.See #8081 (Probas/Infer fidelity) #4956 (Python/C# parity marathon)
Co-Authored-By: Claude-Code noreply@anthropic.com
Twin parity fix (added this push)
The MBML Ch.3 §3.5 nuance now lives in both twins of the Probas-8 pair (parity_level: semantic): Infer-8 (C#) cell[32] (parent commit) + PyMC-8 (Python) cell[17] (this push, fbf2eec). Content is engine-agnostic (TrueSkill concept, not engine-specific) so the same cell text applies. PyMC-8 insertion mirrors Infer-8: after the online-learning description (cell[16]) and before the tournament simulation (cell[17]).
Twin parity register (#8057) surgically rebaselined for Probas-8 (2 SHA lines + date) to reflect both new git blob SHAs — avoids the whole-file formatting churn that
check_twin_parity.py --update(PyYAML re-serialization) produces. Verified: OK=92 DRIFT=0. Content parity is genuine (both twins carry the cell).Note on the twin-tranche rule: this is a single-pair register touch inside a content PR where both twins genuinely moved, not a standalone register PR. Flag me if you prefer register rebaselines confined to family-tranches — happy to revert the yaml line and leave the DRIFT for a tranche PR.