Repository navigation
docs(probas,#8205): canonical citations Infer-2 Gaussian Mixtures (c.831) - #8231
Merged
Merged
Conversation
…831) Applique les findings actionnables de l'audit c.819 (PR #8198 CLOSED violation-fix) au notebook Infer-2. Le notebook implémente un GMM avec priors conjugués Normal-Gamma, comparaison EP vs VMP sur le même modèle, analyse fine du label-switching (cellules 65-66), 5 exercices. Aucune citation des sources canoniques GMM/EM/EP avant ce PR (grep -c « Bishop|Murphy|McLachlan|Dempster » = 0 sur main). Seul Redner & Walker (1984) est cité cell 65, sans Stephens (2000). 2 cellules markdown touchées : - cell 49 (intro GMM) : ajout section « Références canoniques » avec 6 sources (Bishop PRML §9.2/§9.2.2/§10.7, Murphy ML §11.4, McLachlan & Peel 2000, Dempster-Laird-Rubin 1977 EM fondateur, Tipping-Bishop 1999, Ghahramani-Beal 2000 VB) + clarification que MBML ne traite pas les GMM - cell 65 (label-switching) : ajout Stephens (2000) pour le relabelling post-hoc canonique, à côté de Redner & Walker (1984) Sub-issue batch #8205, livraison 4/4 (dernière). R3 atomique strict (+18/-12), JSON valid, LF-only, 27/27 code cells outputs préservés, 0 ré-exécution Papermill. Refs #8081 (partial). See #8205 (sub-issue batch).
Contributor
Golden-Set Execution (H.7 P3)✅ 8/8 notebooks passed (certified reproducible)
Pinned lockfile: |
Contributor
Notebook PR Validation: PASS
Checks: H.1 (no errors), H.3 (execution_count), C.1 (no banned patterns) |
This was referenced Jul 23, 2026
This was referenced Jul 24, 2026
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docs(probas,#8205): canonical citations Infer-2 Gaussian Mixtures (c.831)
Grain: MED/notebook-probas-citations — lane
myia-po-2023:CoursIA-2— prev: MED/notebook-probas-citations (c.830 PR #8230 OPEN MERGEABLE Infer-12). G-VAR-3 intra-genre OK après c.830 : même genrenotebook-probas-citationsmais substance genuinely distincte (GMM ≠ hierarchical, litmus C711-L1 vérifié : Bishop PRML §9.2 GMM ≠ Gelman BDA3 Chap.5 modèles hiérarchiques).Scope
Applique les findings actionnables de l'audit c.819 (PR #8198 CLOSED violation-fix) au notebook
MyIA.AI.Notebooks/Probas/Infer/Infer-2-Gaussian-Mixtures.ipynb. Ce PR est la 4ᵉ/4 du batch #8205 (Refs #8081 partial).Substance (G.1 first-hand) : le notebook implémente un mélange gaussien (GMM) avec priors conjugués Normal-Gamma, comparaison EP vs VMP sur le même modèle (joyau pédagogique cellules 65-66, label-switching analysé finement), 5 exercices progressifs. Aucune citation des sources canoniques GMM/EM/EP avant ce PR (
grep -c "Bishop\|Murphy\|McLachlan\|Dempster" Infer-2-Gaussian-Mixtures.ipynb= 0 sur main) ; seul Redner & Walker (1984) est cité cell 65 (origine théorique du label-switching), mais sans Stephens (2000) pour l'algorithme canonique de relabelling post-hoc.Vérification G.1 du mapping fondateur : aucun chapitre MBML ne couvre les mélanges gaussiens ou l'algorithme EM (vérifié via WebFetch sur mbmlbook.com/toc.html). Le chapitre le plus proche = Ch.8 k-means, qui est du hard clustering non-probabiliste — conceptuellement parent mais algorithmiquement distinct. La source canonique est donc Bishop PRML §9.2 + Murphy ML §11.4, pas MBML — c'est la correction factuelle n°1 de l'audit c.819 (PR #8198, cf. body sub-issue #8205).
Modifications
Cellule 49 (markdown « 10. Modèle de Melange de Gaussiennes »)
Ajout d'une section « Références canoniques » après l'intro, listant les 6 sources canoniques :
La section précise explicitement que MBML ne traite ni les mélanges gaussiens ni EM (vérifié G.1 first-hand), ce qui renforce la correction factuelle du mapping fondateur #8087 (cf. sub-issue #8205).
Cellule 65 (markdown « Lecture de la comparaison : EP n'a pas divergé, il a permuté les composantes »)
Augmentation de la mention existante Redner & Walker (1984) (label-switching théorique) avec Stephens (2000) pour l'algorithme canonique de relabelling post-hoc. Ajout d'un bloc « Référence complémentaire » en fin de cellule précisant la méthode de Stephens (matrice de co-affectation, identification consistante entre runs) et son utilité pratique pour comparer VMP vs EP sans interférence du label-switching.
Conformité
nbformat.validate(nb) == None(84 cellules intactes, dont 27 code préservées avecexecution_count+outputs).grep -c $'\r' <nb>= 0 (vérifié après écriture Python).execution_count: <int>etoutputs: [...]inchangés (audit lecture seule, 0 ré-exécution Papermill).# Solution/# Exemple résolusupprimée.Sub-issues cumulatives (post-merge)
La sub-issue batch #8205 couvre 4 notebooks (c.816 Infer-11 LDA + c.817 PyMC-11 LDA + c.818 Infer-12 Hierarchical + c.819 Infer-2 GMM). Ce PR est la livraison Infer-2 (la 4ᵉ du batch, dernière). Restant à livrer post-merge si le coordinateur le souhaite : Infer-11 LDA + PyMC-11 LDA (sub-famille LDA, sources canoniques Blei/Ng/Jordan 2003 + MBML Ch.8 sub-page LDA + Pritchard 2000 + Wang-Grimson 2007).
Validation H.1 (exécution réelle)
execution_count != nulletoutputs: [...]cohérents (C.2 OK).nbformat.read+nbformat.validate+ diff+18/-12confirme le caractère chirurgical.Refs #8081 (partial — 14ᵉ sub-grain de 38). See #8205 (sub-issue batch consolidée 4 sub-grains).
🤖 Generated with Claude Code
Co-authored-by: myia-po-2023 noreply@anthropic.com